DiscordClient

Namespace: Discord

Properties

Methods

All methods documented here are ones that cannot be put into objects/"models". The other methods already have documentation within their objects.

Constructor

Parameters

Constructor

Parameters

RequestPasswordReset

Requests a password reset for an account.

Parameters

GetPayments

Gets a list of payments the current user has made.

Parameters

Returns

A list of

GetPaymentMethods

Gets the current user's payment methods.

Returns

A list of

GetChannel

Gets a channel.

Parameters

Returns

GetPrivateChannels

Gets all the current user's private channels (DM's).

Returns

A list of

CreateDM

Creates a private channel with the recipient. If a channel already exists, that one will be returned instead.

Parameters

Returns

JoinGroup

Joins a group by an invite.

Parameters

Returns

CreateGroup

Creates a group.

Parameters

Returns

QueryGuilds

Quries public guilds (in the 'Explore Public Servers' tab).

Parameters

Returns

JoinGuild

Joins a lurkable guild.

Parameters

Returns

GetGiftInventory

Gets the current user's gifts.

Returns

A list of

QueryGiftCodes

Queries the current user's gift codes.

Parameters

Returns

A list of

CreateGiftCode

Creates a new gift code. This will only work if you have gifts in your Gift Inventory that don't have any pre-existing codes.

Parameters

Returns

GetNitroGift

Gets a nitro gift.

Parameters

Returns

SetPrivateChannelSettings

Updates the current user's PM settings.

Parameters

Returns

A list of

CreateTemplatedGuild

Creates a guild from a template.

Parameters

CreateGuild

Creates a new guild.

Parameters

Returns

GetGuilds

Gets the current user's guilds.

Parameters

Returns

A list of

GetGuild

Gets a guild the current user is in.

Parameters

Returns

JoinGuild

Joins a guild using an invite.

Parameters

Returns

GetGoLivePreview

Gets the preview image of a Go Live stream. This has not been put into any objects yet, which is why it's here.

Parameters

Returns

Image

GetInvite

Gets information about an invite from it's code.

Parameters

Returns

GetWebhook

Gets a webhook.

Parameters

Returns

AcknowledgeMessage

Acknowledges a message.

Parameters

Returns

An ack token (string), which can be used for future message acknowledgements.

GetAuthorizedApps

Gets the current user's "Authorized Apps".

Returns

A list of

AuthorizeApp

Authorizes an app to the user.

Parameters

Returns

The developer's chosen redirect url (string)

GetApplications

Gets the current user's apps.

Returns

A list of

GetApplication

Gets one of the current user's applications.

Parameters

Returns

CreateApplication

Creates a new app.

Parameters

Returns

GetRelationships

Gets the current user's relationships.

Returns

A list of

SendFriendRequest

Sends a friend request using the target's username#discriminator.

Parameters

SendFriendRequest

Sends a friend request using the target's ID.

Parameters

BlockUser

Blocks a user.

Parameters

GetMutualFriends

Gets the mutual friends between the current user and the specified target.

Parameters

Returns

A list of

BoostGuild

Boosts a guild with a list of boost slots.

Parameters

Returns

A list of

GetNitroBoosts

Gets the user's nitro boost slots.

Returns

A list of

PurchaseGuildBoost

Purchases guild boosts.

Parameters

Returns

GetActiveSubscription

Gets the current user's active subscription, if any.

Returns

A list of

AddPlanToSubscription

Adds a plan to an already-existing subscription.

Parameters

Returns

PurchaseSubscription

Purchases a new subscription.

Parameters

Returns

GetUser

Gets information about a user by it's ID.

Parameters

Returns

GetClientUser

Gets the client's own user.

Returns

GetConnectedAccounts

Gets the current user's connected accounts.

Returns

Ring

Rings a list of recipients in a group.

Parameters

StopRinging

Stops ringing a list of recipients in a group.

Parameters

StartCall

Starts a call in a private channel. Make sure you also join the voice channel (DiscordSocketClient required) for this to show up.

Parameters

DeclineCall

Declines an incoming call.

Parameters

GetVoiceRegions

Gets a list of Discord's voice regions.

Returns

A list of

Last updated