Packages

case class Webhook(id: SnowflakeType[Webhook], type: WebhookType, guildId: Option[GuildId], channelId: TextGuildChannelId, user: Option[User], name: Option[String], avatar: Option[String], token: Option[String], applicationId: Option[ApplicationId], sourceGuild: Option[WebhookSourceGuild], sourceChannel: Option[WebhookSourceChannel], url: Option[String]) extends GetGuildOpt with Product with Serializable

A webhook

id

The webhook id

guildId

The guild it belongs to

channelId

The channel it belongs to

user

The user that created the webhook. Not present when getting a webhook with a token.

name

The name of the webhook

avatar

The default avatar hash of the webhook.

token

The token of the webhook.

applicationId

The bot or OAuth2 application that created the webhook

sourceGuild

The guild of the channel this webhook is following (For channel follower webhooks)

sourceChannel

The channel this webhook is following (For channel follower webhooks)

url

Url used for executing the webhook (Returned by the webhooks OAuth2 flow)

Source
Webhook.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Webhook
  2. Serializable
  3. Product
  4. Equals
  5. GetGuildOpt
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Webhook(id: SnowflakeType[Webhook], type: WebhookType, guildId: Option[GuildId], channelId: TextGuildChannelId, user: Option[User], name: Option[String], avatar: Option[String], token: Option[String], applicationId: Option[ApplicationId], sourceGuild: Option[WebhookSourceGuild], sourceChannel: Option[WebhookSourceChannel], url: Option[String])

    id

    The webhook id

    guildId

    The guild it belongs to

    channelId

    The channel it belongs to

    user

    The user that created the webhook. Not present when getting a webhook with a token.

    name

    The name of the webhook

    avatar

    The default avatar hash of the webhook.

    token

    The token of the webhook.

    applicationId

    The bot or OAuth2 application that created the webhook

    sourceGuild

    The guild of the channel this webhook is following (For channel follower webhooks)

    sourceChannel

    The channel this webhook is following (For channel follower webhooks)

    url

    Url used for executing the webhook (Returned by the webhooks OAuth2 flow)

Value Members

  1. val applicationId: Option[ApplicationId]
  2. val avatar: Option[String]
  3. val channelId: TextGuildChannelId
  4. def guild(implicit snapshot: CacheSnapshot): Option[GatewayGuild]

    The guild for this object

    The guild for this object

    Definition Classes
    GetGuildOpt
  5. val guildId: Option[GuildId]
    Definition Classes
    WebhookGetGuildOpt
  6. val id: SnowflakeType[Webhook]
  7. val name: Option[String]
  8. def productElementNames: Iterator[String]
    Definition Classes
    Product
  9. val sourceChannel: Option[WebhookSourceChannel]
  10. val sourceGuild: Option[WebhookSourceGuild]
  11. def textGuildChannel(implicit snapshot: CacheSnapshot): Option[TextGuildChannel]

    Resolve the channel of this webhook as a guild channel

  12. val token: Option[String]
  13. val type: WebhookType
  14. val url: Option[String]
  15. val user: Option[User]