Add preview in guild structure
This commit is contained in:
		
							parent
							
								
									35da2dbe98
								
							
						
					
					
						commit
						7e11b8a351
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -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 { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue