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[RawSnowflake]) 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 avatar of the webhook.
- token
The token of the webhook.
- applicationId
The bot or OAuth2 application that created the webhook
- Source
- Webhook.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Webhook
- Serializable
- Product
- Equals
- GetGuildOpt
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- 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[RawSnowflake])
- 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 avatar of the webhook.
- token
The token of the webhook.
- applicationId
The bot or OAuth2 application that created the webhook
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val applicationId: Option[RawSnowflake]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val avatar: Option[String]
- val channelId: TextGuildChannelId
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def guild(implicit snapshot: CacheSnapshot): Option[Guild]
The guild for this object
The guild for this object
- Definition Classes
- GetGuildOpt
- val guildId: Option[GuildId]
- Definition Classes
- Webhook → GetGuildOpt
- val id: SnowflakeType[Webhook]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: Option[String]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def textGuildChannel(implicit snapshot: CacheSnapshot): Option[TextGuildChannel]
Resolve the channel of this webhook as a guild channel
- val token: Option[String]
- val type: WebhookType
- val user: Option[User]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()