DiscordGuildTemplate class

Constructors

DiscordGuildTemplate({required String code, required String name, String? description, required int usageCount, required DiscordSnowflake creatorId, required DiscordUser creator, required String createdAt, required String updatedAt, required DiscordSnowflake sourceGuildId, required DiscordGuild serializedSourceGuild, bool? isDirty})
DiscordGuildTemplate.fromJson(Map<String, dynamic> json)
factory

Properties

code String
the template code (unique ID)
final
createdAt String
when this template was created
final
createdAtAsDateTime DateTime
no setter
creator DiscordUser
the user who created this template
final
creatorId DiscordSnowflake
the ID of the user who created this template
final
description String?
the description for the template
final
hashCode int
The hash code for this object.
no setterinherited
isDirty bool?
whether the template has unsynced changes
final
name String
template name
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializedSourceGuild DiscordGuild
the guild snapshot this template contains
final
sourceGuildId DiscordSnowflake
the ID of the guild this template is based on
final
updatedAt String
when this template was last synced to the source guild
final
updatedAtAsDateTime DateTime
no setter
usageCount int
number of times this template has been used
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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