MinimalGuild

Namespace: Discord

Properties

Name

Description

Type

Id

ID of the guild

ulong

Methods

Constructor

Parameters

Name

Description

Type

guildId

ID of the guild that this object will control

ulong

Modify

Modifies the guild.

Parameters

Name

Description

Type

properties

What you want to change

GuildProperties

Delete

Deletes the server.

Leave

Leaves the server.

Parameters

Name

Description

Type

lurking

Set this to true if you're "lurking" this guild

bool?

AcknowledgeMessages

"Acknowledges" all messages in that guild.

ChangeClientNickname

Changes the client's user's nickname for that guild.

Parameters

Name

Description

Type

nickname

Your client's user's new nickname

string

ModifyClientSettings

Modifies the client's own settings for that server.

Parameters

Name

Description

Type

properties

What you want to change

ClientGuildProperties

Returns

ClientGuildSettings

GetTemplates

Gets all templates for that guild.

Return

A list of

DiscordGuildTemplate

CreateTemplate

Creates a new template for that guild.

Parameters

Name

Description

Type

name

The template's name

string

description

The template's description

string

Returns

DiscordGuildTemplate

DeleteTemplate

Deletes a template for that guild.

Parameters

Name

Description

Type

templateCode

The target template's code

string

Returns

DiscordGuildTemplate

SetVanityUrl

Sets the guild's vanity invite (example: 'discord.gg/fortnite').

Parameters

Name

Description

Type

vanityCode

Your vanity code. Example: 'fortnite'

string

GetWelcomeScreen

Gets the guild's welcome screen.

Returns

WelcomeScreen

ModifyWelcomeScreen

Modifies the guild's welcome screen.

Parameters

Name

Description

Type

properties

The values to change

WelcomeScreenProperties

Returns

WelcomeScreen

GetChannels

Gets all of that guild's channels.

Returns

A list of

GuildChannel

CreateChannel

Creates a new channel in the guild.

Parameters

Name

Description

Type

name

Name for the channel

string

type

The type of channel you want to create

ChannelType

parentId

If you want the channel to be under a category, input it's ID here

ulong?

Returns

GuildChannel

GetEmojis

Gets all that guild's emojis.

Returns

A list of

DiscordEmoji

GetEmoji

Gets a specific emoji from that guild.

Returns

DiscordEmoji

CreateEmoji

Creates a new emoji in that guild.

Parameters

Name

Description

Type

properties

Attributes for the emoji

EmojiProperties

Returns

DiscordEmoji

GetRoles

Gets all roles from that guild.

Returns

A list of

DiscordRole

CreateRole

Creates a new role in that guild.

Parameters

Name

Description

Type

properties

Attributes for that role

RoleProperties

Returns

DiscordRole

GetInvites

Gets all invites for the guild.

Returns

A list of

GuildInvite

GetWebhooks

Gets all the guild's webhooks

Returns

A list of

GetAuditLog

Gets the guild's audit log

Parameters

Name

Description

Type

filters

Optional filters for the query

AuditLogFilters?

Returns

A list of

AuditLogEntry

GetMember

Gets a user's guild member info.

Parameters

Name

Description

Type

userId

The target user's ID

ulong

GetBans

Gets the guild's bans.

Returns

A list of

DiscordBan

GetBan

Gets a user's ban info on the guild.

Parameters

Name

Description

Type

userId

The target user's ID

ulong

Returns

DiscordBan

Last updated

Was this helpful?