Package net.dv8tion.jda.api.entities
Class Webhook.GuildReference
- java.lang.Object
-
- net.dv8tion.jda.api.entities.Webhook.GuildReference
-
- All Implemented Interfaces:
ISnowflake
- Enclosing interface:
- Webhook
public static class Webhook.GuildReference extends java.lang.Object implements ISnowflake
Partial Guild which references the source guild for a follower webhook.
-
-
Constructor Summary
Constructors Constructor Description GuildReference(long id, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getIdLong()
The Snowflake id of this entity.java.lang.String
getName()
The source guild's name-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
-
-
-
Method Detail
-
getIdLong
public long getIdLong()
Description copied from interface:ISnowflake
The Snowflake id of this entity. This is unique to every entity and will never change.- Specified by:
getIdLong
in interfaceISnowflake
- Returns:
- Long containing the Id.
-
getName
@Nonnull public java.lang.String getName()
The source guild's name- Returns:
- The guild name
-
-