These options belong to the actions of Guild, the channels and Role. What a message takes is in Message options, what a member takes in GuildMember.
- When editing, only what you pass changes.
nullremoves a value where the type allows it. - Images are data URIs:
data:image/png;base64,.... - Ids are
Snowflakes: theidof a structure, or the text copied from Discord. - Permissions are written by name (
'ManageThreads'), never as numbers: see Permissions.
GuildEditOptions
Whatedit() takes on a server: only what is passed changes. Images are data URIs (data:image/png;base64,...).
What Discord asks of new members before they can write: a value of
VerificationLevel.Whether members get a notification for every message or only when they are mentioned, by default: a value of
DefaultMessageNotificationLevel.Whose images and videos Discord scans for explicit content: a value of
ExplicitContentFilterLevel.The icon: a 1024x1024 PNG, JPEG or GIF (an animated GIF only when the server has the
ANIMATED_ICON feature).The background of the invite page: a 16:9 PNG or JPEG (when the server has the
INVITE_SPLASH feature).The background shown in server discovery: a 16:9 PNG or JPEG (when the server has the
DISCOVERABLE feature).The banner: a 16:9 PNG or JPEG (when the server has the
BANNER feature; an animated GIF when it has the ANIMATED_BANNER feature).The id of the channel where the admins and moderators of a community server receive notices from Discord.
The language of a community server, used in server discovery and in the notices Discord sends;
'en-US' by default. A value of Locale.The features enabled on the server: see
GuildFeature.Whether the boost progress bar is shown.
The id of the channel where the admins and moderators of a community server receive safety alerts from Discord.
ChannelCreateOptions
WhatcreateChannel() takes: a name, a type, and the settings of that kind of channel.
name is needed: without a type, Discord creates a text channel. The other fields only apply to the kind of channel they describe.
The kind of channel: a value of
ChannelType.Slowmode: how many seconds a member waits between two messages (0-21600). Bots and members with the
BypassSlowmode permission are not affected.The camera quality of a voice channel: a value of
VideoQualityMode.After how many minutes without activity the Discord app suggests archiving a new thread of the channel.
The tags the posts of a forum or media channel can have: see
ForumTag. A new tag has no id yet: Discord gives it one.How the posts of a forum or media channel are ordered: a value of
ForumSortOrderType.How the posts of a forum are displayed: a value of
ForumLayoutType.The slowmode given to new threads of the channel. It is copied when the thread is created and does not follow later changes.
GuildChannelEditOptions
Whatedit() takes on a channel of a server.
The kind of channel: a value of
ChannelType. Only a text channel can become an announcement channel and back, in a server that has the NEWS feature.The topic shown at the top of the channel: 0-1024 characters, or 0-4096 for a forum or media channel.
Slowmode: how many seconds a member waits between two messages (0-21600). Bots and members with the
BypassSlowmode permission are not affected.How many people can join: up to 99 in a voice channel, 10,000 in a stage channel;
0 means no limit.What roles and members are allowed or denied in the channel or the category: the same objects as in
ChannelCreateOptions.The camera quality of a voice channel: a value of
VideoQualityMode.After how many minutes without activity the Discord app suggests archiving a new thread of the channel.
The tags the posts of a forum or media channel can have, 20 at most: see
ForumTag. A tag without id is a new one; the others keep theirs.The emoji of the “add reaction” button on the posts of a forum or media channel:
{ emojiId, emojiName }, as in ChannelCreateOptions.The slowmode given to new threads of the channel. It is copied when the thread is created and does not follow later changes.
How the posts of a forum or media channel are ordered: a value of
ForumSortOrderType.How the posts of a forum are displayed: a value of
ForumLayoutType.ThreadCreateOptions
WhatstartThread() takes on a text channel.
message.startThread() instead: see Message.
After how many minutes without activity the thread leaves the channel list:
60, 1440, 4320 or 10080.The kind of thread:
ChannelType.PublicThread, ChannelType.PrivateThread or ChannelType.AnnouncementThread (see ChannelType).Whether members who are not moderators can add other members to the thread. Only for a private thread.
ThreadEditOptions
Whatedit() takes on a thread.
thread.archive() and thread.unarchive() are shortcuts for { archived: true } and { archived: false }.
After how many minutes without activity the thread leaves the channel list:
60, 1440, 4320 or 10080.Whether the thread is locked: only members with the
ManageThreads permission can then unarchive it.Whether members who are not moderators can add other members to the thread. Only for a private thread.
Slowmode: how many seconds a member waits between two messages (0-21600). Bots and members with the
BypassSlowmode permission are not affected.The flags of the thread, as a bit field. Only a post of a forum or media channel can be pinned this way.
ForumPostOptions
WhatcreatePost() takes.
The first message of the post: a text, or everything a message can contain (see
MessageInput).RoleCreateOptions
WhatcreateRole() takes. Permissions are given by name, as a list of names or as a Permissions set.
guild.createRole() creates a role with the defaults of Discord.
What the role allows: a name, a list of names, a
Permissions set, or the text Discord uses. See PermissionResolvable.A standard emoji shown as the icon of the role (when the server has the
ROLE_ICONS feature).RoleEditOptions
Whatedit() takes on a role: only what is passed changes. Permissions are given by name, as a list of names or as a Permissions set.
What the role allows: a name, a list of names, a
Permissions set, or the text Discord uses. It replaces the permissions of the role: start from role.permissions.add() or .remove() to change one. See PermissionResolvable.The colors of the role:
{ primaryColor, secondaryColor, tertiaryColor }, as in RoleCreateOptions.InviteCreateOptions
WhatcreateInvite() takes.
channel.createInvite() creates an invite with the defaults of Discord.
Whether the invite only grants a temporary membership: members who join with it are kicked when they go offline.
true to always create a new link, instead of reusing a similar one that already exists. Useful for many one-time links.The id of the user whose stream to show. Needed when
targetType is 1; the user must be streaming in the channel.The id of the activity to open. Needed when
targetType is 2; the application must have the EMBEDDED flag.FetchMessagesOptions
WhatfetchMessages() takes: how many messages, and from where.
limit is checked before anything is sent. A wrong one throws a RangeError:
snowflakeFromTimestamp().
Discord documentation