Skip to main content
Module

x/aether/mod.ts>Guild

A Deno library to interface with the Discord API
Latest
class Guild
extends Base
import { Guild } from "https://deno.land/x/aether@v0.0.3/mod.ts";

Constructors

new
Guild(data: any, client: Client)

Properties

Collection of the channels of the guild

emojis: Collection<Emoji>

Collection of the emojis in the guild

icon: string

Icon hash of the guild

readonly
iconURL: string

Getter to get the icon URL of the guild

memberCount: number

Member count of the guild

members: Collection<Member>

Collection of the members of the guild

name: string

Name of the guild

ownerID: string

Owner ID of the guild

Collection of the roles of the guild

subscriptionCount: number

Subscription count 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?:
| 0
| 1
| 2
| 3
| 4
| 5
| 6
| 7
; }
): Promise<void>

Method to ban a member from the guild

Method to create a channel in the guild

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