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
Constructors -
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.intReturns total permissions for theCurrentUserin this guild.booleanisOwner()Returns whenever theCurrentUseris owner of this guild.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mrivanplays.jdoa2.ISnowflake
getIdLong
-
Constructor Details
-
Guild
-
-
Method Details
-
getId
Returns the snowflake, this object is holding.- Specified by:
getIdin 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 theCurrentUseris 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:
trueif owner,falseotherwise
-
getPermissions
public int getPermissions()Returns total permissions for theCurrentUserin this guild. You must have knowledge of binary and stuff in order to calculate them.- Returns:
- permission
-