hikari.templates#
Application and entities that are used to describe guild templates on Discord.
Module Contents#
- class hikari.templates.TemplateRole[source]#
Bases:
hikari.guilds.PartialRole
The partial role object attached to
Template
.- permissions: hikari.permissions.Permissions[source]#
The guild wide permissions this role gives to the members it’s attached to.
This may be overridden by channel overwrites.
- color: hikari.colors.Color[source]#
The colour of this role.
This will be applied to a member’s name in chat if it’s their top coloured role.
- class hikari.templates.TemplateGuild[source]#
Bases:
hikari.guilds.PartialGuild
The partial guild object attached to
Template
.- verification_level: Union[hikari.guilds.GuildVerificationLevel, int][source]#
The verification level needed for a user to participate in this guild.
- default_message_notifications: Union[hikari.guilds.GuildMessageNotificationsLevel, int][source]#
The default setting for message notifications in this guild.
- explicit_content_filter: Union[hikari.guilds.GuildExplicitContentFilterLevel, int][source]#
The setting for the explicit content filter in this guild.
- preferred_locale: str[source]#
The preferred locale to use for this guild.
This can only be change if
GuildFeature.COMMUNITY
is inGuild.features
for this guild and will otherwise default toen-US
.
- afk_timeout: datetime.timedelta[source]#
Timeout for activity before a member is classed as AFK.
How long a voice user has to be AFK for before they are classed as being AFK and are moved to the AFK channel (
Guild.afk_channel_id
).
- roles: Mapping[hikari.snowflakes.Snowflake, TemplateRole][source]#
The roles in the guild.
Note
hikari.guilds.Role.id
will be a unique placeholder on all the role objects found attached this template guild.
- channels: Mapping[hikari.snowflakes.Snowflake, hikari.channels.GuildChannel][source]#
The channels for the guild.
Note
hikari.channels.GuildChannel.id
will be a unique placeholder on all the channel objects found attached this template guild.
- afk_channel_id: Optional[hikari.snowflakes.Snowflake][source]#
The ID for the channel that AFK voice users get sent to.
If
None
, then no AFK channel is set up for this guild.
- system_channel_id: Optional[hikari.snowflakes.Snowflake][source]#
The ID of the system channel or
None
if it is not enabled.Welcome messages and Nitro boost messages may be sent to this channel.
- system_channel_flags: hikari.guilds.GuildSystemChannelFlag[source]#
Return flags for the guild system channel.
These are used to describe which notifications are suppressed.
- class hikari.templates.Template[source]#
Represents a template used for creating guilds.
- creator: hikari.users.User[source]#
The user who created the template.
- created_at: datetime.datetime[source]#
When the template was created.
- updated_at: datetime.datetime[source]#
When the template was last synced with the source guild.
- source_guild: TemplateGuild[source]#
The partial object of the guild this template is based on.