Add preview in guild structure

This commit is contained in:
Helloyunho 2021-01-16 01:48:08 +09:00
parent 35da2dbe98
commit 7e11b8a351

View file

@ -7,7 +7,8 @@ import {
IntegrationAccountPayload, IntegrationAccountPayload,
IntegrationExpireBehavior, IntegrationExpireBehavior,
Verification, Verification,
GuildChannels GuildChannels,
GuildPreview
} from '../types/guild.ts' } from '../types/guild.ts'
import { Base } from './base.ts' import { Base } from './base.ts'
import { CreateGuildRoleOptions, RolesManager } from '../managers/roles.ts' import { CreateGuildRoleOptions, RolesManager } from '../managers/roles.ts'
@ -327,6 +328,10 @@ export class Guild extends Base {
}, timeout) }, timeout)
}) })
} }
async preview(): Promise<GuildPreview> {
return this.client.guilds.preview(this.id)
}
} }
export class GuildIntegration extends Base { export class GuildIntegration extends Base {