Class InviteImpl.InviteGuildImpl
java.lang.Object
com.mewna.catnip.entity.impl.guild.InviteImpl.InviteGuildImpl
- All Implemented Interfaces:
Entity
,Invite.InviteGuild
,HasIcon
,HasName
,Snowflake
,Timestamped
,RequiresCatnip
- Enclosing class:
- InviteImpl
public static class InviteImpl.InviteGuildImpl
extends Object
implements Invite.InviteGuild, RequiresCatnip
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Constructor Summary
ConstructorDescriptionInviteGuildImpl
(Catnip catnip, long idAsLong, String name, String icon, String splash, List<GuildFeature> features, Guild.VerificationLevel verificationLevel) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
catnip()
Returns the catnip instance associated with this entity.void
boolean
features()
features
(List<GuildFeature> features) int
hashCode()
icon()
long
idAsLong()
The ID of this snowflake, as a long.idAsLong
(long idAsLong) name()
splash()
toString()
verificationLevel
(Guild.VerificationLevel verificationLevel) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mewna.catnip.entity.guild.Invite.InviteGuild
iconUrl, iconUrl, splashUrl, splashUrl
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
-
Constructor Details
-
InviteGuildImpl
public InviteGuildImpl() -
InviteGuildImpl
public InviteGuildImpl(Catnip catnip, long idAsLong, String name, String icon, String splash, List<GuildFeature> features, Guild.VerificationLevel verificationLevel)
-
-
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. -
name
-
icon
- Specified by:
icon
in interfaceHasIcon
- Specified by:
icon
in interfaceInvite.InviteGuild
- Returns:
- The icon's hash. May be null, in cases like a user not setting an avatar, no guild icon, ...
-
splash
- Specified by:
splash
in interfaceInvite.InviteGuild
-
features
- Specified by:
features
in interfaceInvite.InviteGuild
-
verificationLevel
- Specified by:
verificationLevel
in interfaceInvite.InviteGuild
-
idAsLong
- Returns:
this
.
-
name
- Returns:
this
.
-
icon
- Returns:
this
.
-
splash
- Returns:
this
.
-
features
- Returns:
this
.
-
verificationLevel
- Returns:
this
.
-