Skip to main content

Module guild_template

Module guild_template 

Source
Expand description

Guild templates: codes that create a new guild from a snapshot of an existing one.

The snapshot (SerializedSourceGuild) does not use real IDs: roles and channels get small placeholder IDs (0 is @everyone, channels count up from 1) that other parts of the snapshot refer to (parent_id, permission overwrites, system_channel_id). Discord replaces them with real snowflakes when a guild is created from the template. They are therefore plain u64s here, not Ids, and the snapshot types are separate from Role and Channel (D-059). The same format is used by the (deprecated) “create guild” REST body.

Structs§

GuildTemplate
A guild template.
SerializedSourceGuild
The guild snapshot of a GuildTemplate (a partial guild with placeholder IDs, D-059).
TemplateChannel
A channel in a SerializedSourceGuild (D-059).
TemplateForumTag
A forum tag in a TemplateChannel: like a ForumTag, but without an ID (D-059).
TemplateOverwrite
A permission overwrite in a TemplateChannel (D-059).
TemplateRole
A role in a SerializedSourceGuild (D-059).