mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
fix: fmt
This commit is contained in:
parent
c22ea0a767
commit
615470e723
@ -38,7 +38,7 @@ session.on("messageCreate", (message) => {
|
||||
if (name === "ping") {
|
||||
message.reply({ components: [row] })
|
||||
.then(() => {})
|
||||
.catch(e => console.error(e))
|
||||
.catch((e) => console.error(e));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -15,7 +15,7 @@ const command: CreateApplicationCommand = {
|
||||
description: "Replies with pong!",
|
||||
};
|
||||
|
||||
const guildId = '';
|
||||
const guildId = "";
|
||||
|
||||
session.on("ready", async (payload) => {
|
||||
console.log("Logged in as:", payload.user.username);
|
||||
@ -40,4 +40,4 @@ session.on("interactionCreate", (interaction) => {
|
||||
}
|
||||
});
|
||||
|
||||
await session.start()
|
||||
await session.start();
|
||||
|
@ -1,15 +1,15 @@
|
||||
import type {
|
||||
StatusTypes,
|
||||
ApplicationCommandPermissionTypes,
|
||||
AtLeastOne,
|
||||
DiscordApplicationCommand,
|
||||
DiscordApplicationCommandOption,
|
||||
DiscordGetGatewayBot,
|
||||
DiscordGuildApplicationCommandPermissions,
|
||||
DiscordUser,
|
||||
GatewayBot,
|
||||
GatewayIntents,
|
||||
Localization,
|
||||
DiscordUser,
|
||||
StatusTypes,
|
||||
} from "../discordeno/mod.ts";
|
||||
|
||||
import type { DiscordGatewayPayload, Shard } from "../discordeno/mod.ts";
|
||||
@ -24,9 +24,9 @@ import {
|
||||
ApplicationCommandTypes,
|
||||
createGatewayManager,
|
||||
createRestManager,
|
||||
getBotIdFromToken,
|
||||
GatewayOpcodes,
|
||||
StatusTypes
|
||||
getBotIdFromToken,
|
||||
StatusTypes,
|
||||
} from "../discordeno/mod.ts";
|
||||
|
||||
import User from "./structures/User.ts";
|
||||
@ -111,7 +111,7 @@ export interface SessionOptions {
|
||||
|
||||
/**
|
||||
* @link https://discord.com/developers/docs/topics/gateway#update-status
|
||||
* */
|
||||
*/
|
||||
export interface StatusUpdate {
|
||||
activities: Activities[];
|
||||
status: StatusTypes;
|
||||
@ -209,7 +209,7 @@ export class Session extends EventEmitter {
|
||||
* for (const { id } of session.gateway.manager.shards) {
|
||||
* session.editStatus(id, data);
|
||||
* }
|
||||
* */
|
||||
*/
|
||||
editStatus(shardId: number, status: StatusUpdate): void {
|
||||
const shard = this.gateway.manager.shards.get(shardId);
|
||||
|
||||
@ -236,15 +236,17 @@ export class Session extends EventEmitter {
|
||||
emoji: activity.emoji || {
|
||||
name: activity.emoji!.name,
|
||||
id: activity.emoji!.id,
|
||||
animated: activity.emoji!.animated
|
||||
animated: activity.emoji!.animated,
|
||||
},
|
||||
party: activity.party,
|
||||
assets: activity.assets ? {
|
||||
assets: activity.assets
|
||||
? {
|
||||
large_image: activity.assets.largeImage,
|
||||
large_text: activity.assets.largeText,
|
||||
small_image: activity.assets.smallImage,
|
||||
small_text: activity.assets.smallText,
|
||||
} : undefined,
|
||||
}
|
||||
: undefined,
|
||||
secrets: activity.secrets,
|
||||
instance: activity.instance,
|
||||
flags: activity.flags,
|
||||
|
@ -691,7 +691,8 @@ export class Guild extends BaseGuild implements Model {
|
||||
splash: "splashURL" in options
|
||||
? options.splashURL || urlToBase64(options.splashURL!)
|
||||
: options.splashHash || Util.iconBigintToHash(options.iconHash!),
|
||||
banner: "bannerURL" in options ? options.bannerURL || urlToBase64(options.bannerURL!)
|
||||
banner: "bannerURL" in options
|
||||
? options.bannerURL || urlToBase64(options.bannerURL!)
|
||||
: options.bannerHash || Util.iconBigintToHash(options.bannerHash!),
|
||||
discovery_splash: "discoverySplashURL" in options
|
||||
? options.discoverySplashURL || urlToBase64(options.discoverySplashURL!)
|
||||
|
Loading…
x
Reference in New Issue
Block a user