class default
extends Base
import { default } from "https://deno.land/x/aether@v0.0.3/src/structures/guild/Guild.ts";
Constructors
new
default(data: any, client: Client)Properties
channels: Collection<GuildChannel>
Collection of the channels of the guild
emojis: Collection<Emoji>
Collection of the emojis in the guild
members: Collection<Member>
Collection of the members of the guild
roles: Collection<Role>
Collection of the roles of the guild
Methods
addMemberRole(memberID: string, roleID: string): Promise<void>
Method to add a specific role to a specific member in the guild
banMember(id: string, o?: { reason?: string; deleteMessageDays?: ; }): Promise<void>
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
Method to ban a member from the guild
createChannel(o: ChannelOptions): Promise<GuildChannel>
Method to create a channel in the guild
createRole(o: RoleOptions): Promise<Role>
Method to create a role in the guild
deleteChannel(id: string): Promise<GuildChannel>
Method to delete a channel in the guild
deleteRole(id: string): Promise<void>
Method to delete a role in the guild
editChannel(id: string, o: ChannelOptions): Promise<GuildChannel>
Method to edit a channel in the guild
editMember(id: string, o: MemberOptions): Promise<void>
Method to edit a member in the guild
editRole(id: string, o: RoleOptions): Promise<Role>
Method to edit a role in the guild
kickMember(id: string): Promise<void>
Method to kick a member from the guild
removeMemberRole(memberID: string, roleID: string): Promise<void>
Method to remove a specific role from a specific member in the guild
unbanMember(id: string): Promise<void>
Method to unban a member from the guild