Add preview in guild structure

This commit is contained in:
Helloyunho 2021-01-16 01:48:08 +09:00
parent 35da2dbe98
commit 7e11b8a351
1 changed files with 6 additions and 1 deletions

View File

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