GuildTemplate class

A snapshot of a Guild that can be used to create a new guild.

Properties

code String
The code of this template.
final
createdAt DateTime
The time at which this template was created.
final
creator User
The user that created this template.
final
creatorId Snowflake
The ID of the user that created this template.
final
description String?
The description of this template.
final
hashCode int
The hash code for this object.
no setterinherited
isDirty bool?
Whether this template has unsynced changes.
final
manager GuildManager
The manager for this template.
final
name String
The name of this template.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializedSourceGuild Guild
The snapshot of the guild that will be used for this template.
final
sourceGuild PartialGuild
The guild this template was created from.
no setter
sourceGuildId Snowflake
The ID of the guild this template was created from.
final
updatedAt DateTime
The time at which this template was last updated.
final
usageCount int
The number of times this template was used.
final

Methods

defaultToString() String
Same as toString, but only called when dart:mirrors is not available.
inherited
delete() Future<GuildTemplate>
Delete this template.
fetch() Future<GuildTemplate>
Fetch this template.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sync() Future<GuildTemplate>
Sync this template to the source guild.
toString() String
A string representation of this object.
inherited
update(GuildTemplateUpdateBuilder builder) Future<GuildTemplate>
Update this template.
use({required String name, ImageBuilder? icon}) Future<Guild>
Create a guild from this template.

Operators

operator ==(Object other) bool
The equality operator.
inherited