Skip to content

Commit

Permalink
fmt: format files
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulrahman1s committed Jun 2, 2022
1 parent b4399a3 commit 07d1f35
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions examples/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
}
});
Expand Down
4 changes: 1 addition & 3 deletions src/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -57,5 +56,4 @@ export class Client extends BaseClient {
}
}


export type { ClientOptions } from './BaseClient.ts'
export type { ClientOptions } from './BaseClient.ts';
6 changes: 5 additions & 1 deletion src/util/Badges.ts
Original file line number Diff line number Diff line change
@@ -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<BadgeString, boolean>;
Expand Down
2 changes: 1 addition & 1 deletion src/util/Permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class ChannelPermissions extends BitField {
constructor(bits?: ChannelPermissionsResolvable) {
super(bits);
}

static resolve(bit: ChannelPermissionsResolvable): number {
return super.resolve(bit);
}
Expand Down

0 comments on commit 07d1f35

Please sign in to comment.