Package com.mrivanplays.jdoa2
Class Guild
java.lang.Object
com.mrivanplays.jdoa2.Guild
- All Implemented Interfaces:
ISnowflake
Represents a guild object, holding information about the
CurrentUser's
state, and also holding
very basic information about the guild itself.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
Returns the guild's icon hashReturns the guild's icon url, if the guild has icon.getId()
Returns the snowflake, this object is holding.getName()
Returns the guild's name.int
Returns total permissions for theCurrentUser
in this guild.boolean
isOwner()
Returns whenever theCurrentUser
is owner of this guild.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mrivanplays.jdoa2.ISnowflake
getIdLong
-
Constructor Details
-
Guild
-
-
Method Details
-
getId
Returns the snowflake, this object is holding.- Specified by:
getId
in interfaceISnowflake
- Returns:
- id snowflake
-
getName
Returns the guild's name.- Returns:
- guild name
-
getIcon
Returns the guild's icon hash- Returns:
- icon hash
-
getIconUrl
Returns the guild's icon url, if the guild has icon.- Returns:
- icon url
-
isOwner
public boolean isOwner()Returns whenever theCurrentUser
is owner of this guild.A owner represents the user, who have created the guild, and not a user, which has a role which gives him most of the permissions.
- Returns:
true
if owner,false
otherwise
-
getPermissions
public int getPermissions()Returns total permissions for theCurrentUser
in this guild. You must have knowledge of binary and stuff in order to calculate them.- Returns:
- permission
-