TemplateAPI class

Constructors

TemplateAPI(DiscordHTTPClient _http)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createGuildFromTemplate(String templateCode, {required String name, String? icon}) Future<Guild>
createTemplate(String guildId, {required String name, String? description = ''}) Future<Template>
deleteTemplate(String guildId, String templateCode) Future<Template>
getTemplate(String templateCode) Future<Template>
getTemplates(String guildId) Future<List<Template>>
modifyTemplate(String guildId, String templateCode, {String? name, String? description = ''}) Future<Template>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
syncTemplate(String guildId, String templateCode) Future<Template>
toString() String
A string representation of this object.
inherited

Operators

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