IWebhook class abstract
Webhooks are a low-effort way to post messages to channels in Discord. They do not require a bot user or authentication to use.
- Implemented types
Constructors
- IWebhook()
Properties
- avatarHash → String?
-
Webhooks avatar hash
no setter
- bot → bool
-
True if bot or webhook
no setterinherited
-
channel
→ ICacheableTextChannel<
ITextGuildChannel> ? -
The webhook's channel, if this is accessed using a normal client and the client has that channel in it's cache.
no setter
- client → INyxx
-
Reference to
NyxxWebsocket
objectno setter - createdAt → DateTime
-
Gets creation timestamp included in Snowflake
no setterinherited
- defaultAvatarId → int
-
Default webhook avatar id
no setter
- discriminator → int
-
User Discriminator. -1 if webhook
no setterinherited
-
guild
→ Cacheable<
Snowflake, IGuild> ? -
The webhook's guild, if this is accessed using a normal client and the client has that guild in it's cache.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Snowflake
-
ID of entity as Snowflake
finalinherited
- name → String?
-
The webhook's name.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
User tag:
l7ssha#6712
no setterinherited - token → String
-
The webhook's token. Defaults to empty string
no setter
- type → WebhookType?
-
Webhook type
no setter
- user → IUser?
-
The user, if this is accessed using a normal client.
no setter
- username → String
-
User name
no setterinherited
Methods
-
avatarURL(
{String format = "webp", int size = 128}) → String -
Url to user avatar
override
-
delete(
{String? auditReason}) → Future< void> - Deletes the webhook.
-
edit(
{String? name, SnowflakeEntity? channel, AttachmentBuilder? avatarAttachment, String? auditReason}) → Future< IWebhook> - Edits the webhook.
-
execute(
MessageBuilder builder, {bool wait = true, Snowflake? threadId, String? avatarUrl, String? username}) → Future< IMessage?> - Executes webhook.
-
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 ==(
dynamic other) → bool -
The equality operator.
inherited