Class Guild

  • All Implemented Interfaces:

    public class Guild
    extends Object
    implements ISnowflake
    Represents a guild object, holding information about the CurrentUser's state, and also holding very basic information about the guild itself.
    • Constructor Detail

      • Guild

        public Guild​(String id,
                     String name,
                     String icon,
                     boolean owner,
                     int permissions)
    • Method Detail

      • getId

        public String getId()
        Returns the snowflake, this object is holding.
        Specified by:
        getId in interface ISnowflake
        id snowflake
      • getName

        public String getName()
        Returns the guild's name.
        guild name
      • getIcon

        public String getIcon()
        Returns the guild's icon hash
        icon hash
      • isOwner

        public boolean isOwner()
        Returns whenever the CurrentUser 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.

        true if owner, false otherwise