UNPKG

741 BPlain TextView Raw
1/* tslint:disable:no-empty */
2import { ActivityType, Channel, ClientUser, Collection, Emoji, Guild, Presence, User } from 'discord.js'
3
4export default class FakeClient {
5 user: ClientUser = {
6 id: '0',
7 setActivity: async (
8 name: string | null,
9 options?: { url?: string, type?: ActivityType | number }
10 ): Promise<Presence> => { return {} as Presence }
11 } as ClientUser
12 users: Collection<string, User> = new Collection()
13 guilds: Collection<string, Guild> = new Collection()
14 channels: Collection<string, Channel> = new Collection()
15 emojis: Collection<string, Emoji> = new Collection()
16 async login (token: string): Promise<string> { return token }
17 on (name: string, callback: any) {}
18 async destroy () {}
19}