Class OAuth2GuildImpl
java.lang.Object
com.jagrosh.jdautilities.oauth2.entities.impl.OAuth2GuildImpl
- All Implemented Interfaces:
OAuth2Guild,net.dv8tion.jda.api.entities.ISnowflake
- Author:
- John Grosh ([email protected])
-
Constructor Summary
ConstructorsConstructorDescriptionOAuth2GuildImpl(OAuth2Client client, long id, String name, String icon, boolean owner, long permissions) -
Method Summary
Modifier and TypeMethodDescriptionGets the underlyingOAuth2Clientthat created this OAuth2Guild.Gets the Guild's icon ID, ornullif the Guild does not have an icon.Gets the Guild's icon URL, ornullif the Guild does not have an icon.longgetName()Gets the Guild's name.EnumSet<net.dv8tion.jda.api.Permission>Gets the Session User'sPermissionsfor the Guild.longGets the Session User's raw permission value for the Guild.booleanhasPermission(net.dv8tion.jda.api.Permission... perms) Whether or not the Session User has all of the specifiedPermissionsin the Guild.booleanisOwner()Whether or not the Session User is the owner of the Guild.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dv8tion.jda.api.entities.ISnowflake
getId, getTimeCreated
-
Constructor Details
-
OAuth2GuildImpl
public OAuth2GuildImpl(OAuth2Client client, long id, String name, String icon, boolean owner, long permissions)
-
-
Method Details
-
getClient
Description copied from interface:OAuth2GuildGets the underlyingOAuth2Clientthat created this OAuth2Guild.- Specified by:
getClientin interfaceOAuth2Guild- Returns:
- The OAuth2Client that created this OAuth2Guild.
-
getIdLong
public long getIdLong()- Specified by:
getIdLongin interfacenet.dv8tion.jda.api.entities.ISnowflake
-
getName
Description copied from interface:OAuth2GuildGets the Guild's name.- Specified by:
getNamein interfaceOAuth2Guild- Returns:
- The Guild's name.
-
getIconId
Description copied from interface:OAuth2GuildGets the Guild's icon ID, ornullif the Guild does not have an icon.- Specified by:
getIconIdin interfaceOAuth2Guild- Returns:
- The Guild's icon ID.
-
getIconUrl
Description copied from interface:OAuth2GuildGets the Guild's icon URL, ornullif the Guild does not have an icon.- Specified by:
getIconUrlin interfaceOAuth2Guild- Returns:
- The Guild's icon URL.
-
getPermissionsRaw
public long getPermissionsRaw()Description copied from interface:OAuth2GuildGets the Session User's raw permission value for the Guild.- Specified by:
getPermissionsRawin interfaceOAuth2Guild- Returns:
- The Session User's raw permission value for the Guild.
-
getPermissions
Description copied from interface:OAuth2GuildGets the Session User'sPermissionsfor the Guild.- Specified by:
getPermissionsin interfaceOAuth2Guild- Returns:
- The Session User's Permissions for the Guild.
-
isOwner
public boolean isOwner()Description copied from interface:OAuth2GuildWhether or not the Session User is the owner of the Guild.- Specified by:
isOwnerin interfaceOAuth2Guild- Returns:
trueif the Session User is the owner of the Guild,falseotherwise.
-
hasPermission
public boolean hasPermission(net.dv8tion.jda.api.Permission... perms) Description copied from interface:OAuth2GuildWhether or not the Session User has all of the specifiedPermissionsin the Guild.- Specified by:
hasPermissionin interfaceOAuth2Guild- Parameters:
perms- The Permissions to check for.- Returns:
trueif and only if the Session User has all of the specified Permissions,falseotherwise.
-