WebhookAPI class
Constructors
-
WebhookAPI(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
-
createWebhook(String channelId, {required String name, String? imageData})
→ Future<Webhook>
-
-
deleteWebhook(String webhookId, {String? webhookToken})
→ Future
-
-
deleteWebhookMessage(String webhookId, {required String webhookToken, required String messageId})
→ Future
-
-
editWebhookMessage(String webhookId, {required String webhookToken, required String messageId, String? content = '', List<Embed>? embeds = const [], AllowedMentions? allowedMentions})
→ Future<Message>
-
-
executeGithubCompatibleWebhook(String webhookId, String webhookToken, {bool? wait})
→ Future<Webhook>
-
-
executeSlackCompatibleWebhook(String webhookId, String webhookToken, {bool? wait})
→ Future<Webhook>
-
-
executeWebhook(String webhookId, String webhookToken)
→ Future
-
-
getChannelWebhooks(String channelId)
→ Future<List<Webhook>>
-
-
getGuildWebhooks(String guildId)
→ Future<List<Webhook>>
-
-
getWebhook(String webhookId, {String? webhookToken})
→ Future<Webhook>
-
-
modifyWebhook(String webhookId, {String? name, String? avatar = '', String? channelId})
→ Future<Webhook>
-
-
modifyWebhookWithToken(String webhookId, {required String webhookToken, String? name, String? avatar = ''})
→ Future<Webhook>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited