Class WebhookImpl
java.lang.Object
com.mewna.catnip.entity.impl.channel.WebhookImpl
- All Implemented Interfaces:
Webhook
,Entity
,GuildEntity
,HasChannel
,HasGuild
,HasNullableName
,Snowflake
,Timestamped
,RequiresCatnip
- Since:
- 9/15/18
- Author:
- natanbc
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.channel.Webhook
Webhook.WebhookEditFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionavatar()
builder()
catnip()
Returns the catnip instance associated with this entity.void
long
channelIdAsLong
(long channelIdAsLong) boolean
long
The id of the guild this entity is from.guildIdAsLong
(long guildIdAsLong) int
hashCode()
long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) name()
token()
toString()
user()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.partials.GuildEntity
guild
Methods inherited from interface com.mewna.catnip.entity.partials.HasChannel
channelId
Methods inherited from interface com.mewna.catnip.entity.partials.Snowflake
creationTime, creationTimestamp, id
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
Methods inherited from interface com.mewna.catnip.entity.channel.Webhook
delete, edit, executeWebhook, executeWebhook, executeWebhook, executeWebhook, executeWebhook, executeWebhook, url
-
Constructor Details
-
WebhookImpl
public WebhookImpl() -
WebhookImpl
-
-
Method Details
-
catnip
- Specified by:
catnip
in interfaceRequiresCatnip
-
hashCode
public int hashCode() -
equals
-
toString
-
builder
-
catnip
Description copied from interface:Entity
Returns the catnip instance associated with this entity. -
idAsLong
public long idAsLong()Description copied from interface:Snowflake
The ID of this snowflake, as a long. -
guildIdAsLong
public long guildIdAsLong()Description copied from interface:HasGuild
The id of the guild this entity is from.- Specified by:
guildIdAsLong
in interfaceHasGuild
- Returns:
- Long representing the guild ID.
-
channelIdAsLong
public long channelIdAsLong()- Specified by:
channelIdAsLong
in interfaceHasChannel
-
user
-
name
- Specified by:
name
in interfaceHasNullableName
- Returns:
- The entity's name. May be null.
-
avatar
-
token
-
idAsLong
- Returns:
this
.
-
guildIdAsLong
- Returns:
this
.
-
channelIdAsLong
- Returns:
this
.
-
user
- Returns:
this
.
-
name
- Returns:
this
.
-
avatar
- Returns:
this
.
-
token
- Returns:
this
.
-