Skip to content

Types

This page will explain the different types available on DiSky, and some specification about them.

General

bot

Represent a DiSky bot, which is a bot that is connected to Discord. It holds information like the token, the shard manager, and the cache.

user

The User type represent a Discord account, or a bot account. There's only one "user instance", meaning each user are uniques across all guilds. Due to obvious reasons, we cannot cache all users, thus you'll have to retrieve them.

member

The Member type represent a Discord account that is in a guild. It holds more information than a user, like the roles, nickname, and the guild it's in. It's unique for each guild, meaning a user can have multiple member instances.

guild

The Guild type represent a Discord server. It holds information like the name, icon, owner, and the members.

invite

Represent a Discord invitation to a guild. It always points to a channel (that is of course in the guild), and can have a limited number of uses, and an expiration date.

Related Syntax
Expressions Effects Events
Invite Code Create Invite Invite Create Event
Invite Inviter Retrieve Invite Invite Delete Event
Invite Max Age Retrieve Invites
Invite Max Uses
Invite URL

Channels

channel

The Channel type is the base type for all channels, and is used to represent a channel in Discord. For instance, it can be a voice or text channel from a guild, or a private channel.

guildchannel (extends channel)

The GuildChannel type is the base type for all channels that are in a guild, and is used to represent a channel in Discord.

Info

Don't forget that, for Discord, a category is a channel too! Therefore, a category is a GuildChannel.

audiochannel (extends guildchannel)

The AudioChannel type is the base type for all channels that are in a guild and can be used to play audio. For instance, it can be a voice channel, or a stage channel. It can't be a text channel.

textchannel (extends guildchannel)

The TextChannel is a concrete type that represents a text channel in Discord. It holds several messages, and can be used to send messages. They have a topic, slow mode, and can be marked as NSFW.

voicechannel (extends guildchannel)

The VoiceChannel is a concrete type that represents a voice channel in Discord. It can be used to play audio, and can have a bitrate, user limit, and a region. People can join and leave the channel, and it can be used to move people from one channel to another.

stagechannel (extends guildchannel)

The StageChannel is a concrete type that represents a stage channel in Discord. It can be used to play audio, and can have a bitrate, user limit, and a region. People can join and leave the channel, and it can be used to move people from one channel to another.

category (extends guildchannel)

The Category is a concrete type that represents a category in Discord. It can be used to organize channels, and can have a name, position, and a topic. One category can hold several channels, and one channel can only be in one category or none.

privatechannel (extends channel)

The PrivateChannel type is the base type for all channels that are private, and is used to represent a channel in Discord. For instance, it can be a private text channel, or a private voice channel.

memberflag

This type is used to represent a flag of a member. This was introduced in Discord recently, therefore old members may not have any flag.

You can check the member flags expression for getting/adding flags to a member. Some flags cannot be added manually!

The Member has left and rejoined the guild

This flag is not modifiable

The Member has completed the onboarding process

This flag is not modifiable

The Member has bypassed the verification step

This flag is modifiable

The Member has started the onboarding process

This flag is not modifiable