diff --git a/examples/embed.ts b/examples/embed.ts index 09a06b6..3ccbba6 100644 --- a/examples/embed.ts +++ b/examples/embed.ts @@ -8,12 +8,11 @@ client.on('ready', () => { client.on('message', (msg) => { if (msg.content === '!embed') { - const embed = new MessageEmbed() .setTitle('Revolt.io') .setColor('#ff4654') .setDescription('Embed sent by revolt.io'); - + msg.channel.send({ embeds: [embed] }); } }); diff --git a/src/client/Client.ts b/src/client/Client.ts index 9d5830c..d46f131 100644 --- a/src/client/Client.ts +++ b/src/client/Client.ts @@ -5,7 +5,6 @@ import { Error } from '../errors/mod.ts'; import { ChannelManager, ServerManager, UserManager } from '../managers/mod.ts'; import type { ClientUser } from '../structures/mod.ts'; - export class Client extends BaseClient { protected readonly ws = new WebSocketShard(this); readonly actions = new ActionManager(this); @@ -57,5 +56,4 @@ export class Client extends BaseClient { } } - -export type { ClientOptions } from './BaseClient.ts' +export type { ClientOptions } from './BaseClient.ts'; diff --git a/src/util/Badges.ts b/src/util/Badges.ts index 1894c0a..02ad352 100644 --- a/src/util/Badges.ts +++ b/src/util/Badges.ts @@ -1,7 +1,11 @@ import { BitField } from './BitField.ts'; export type BadgeString = keyof typeof Badges.FLAGS; -export type BadgesResolvable = number | BadgeString | Badges | BadgesResolvable[]; +export type BadgesResolvable = + | number + | BadgeString + | Badges + | BadgesResolvable[]; export declare interface Badges { serialize(): Record; diff --git a/src/util/Permissions.ts b/src/util/Permissions.ts index ff65f47..dc7d0ac 100644 --- a/src/util/Permissions.ts +++ b/src/util/Permissions.ts @@ -58,7 +58,7 @@ export class ChannelPermissions extends BitField { constructor(bits?: ChannelPermissionsResolvable) { super(bits); } - + static resolve(bit: ChannelPermissionsResolvable): number { return super.resolve(bit); }