Class PartialGuild

  • Direct Known Subclasses:
    Guild

    public class PartialGuild
    extends java.lang.Object
    Represents a Guild that does not have all it's details.
    • Method Detail

      • getId

        public java.lang.String getId()
      • getName

        public java.lang.String getName()
      • getIcon

        public java.lang.String getIcon()
      • isOwner

        public boolean isOwner()
      • getPermissions

        public int getPermissions()
      • getFull

        public Guild getFull​(@NotNull
                             @NotNull Bot bot)
        Gets the full Guild object. Useful if this is a PartialGuild instance.
        Parameters:
        bot - The bot to get the guild from
        Returns:
        The full guild.
      • createChannel

        public Channel createChannel​(@NotNull
                                     @NotNull java.lang.String name,
                                     @NotNull
                                     Channel.Type type,
                                     @NotNull
                                     @NotNull Bot bot)
        Creates a channel in the guild.
        Parameters:
        name - The name for the new channel
        type - The type of the new channel
        bot - The bot to create the channel as
        Returns:
        The new channel
        See Also:
        Discord Create Guild Channel
      • createChannel

        public Channel createChannel​(@NotNull
                                     @NotNull java.lang.String name,
                                     @NotNull
                                     Channel.Type type,
                                     @NotNull
                                     @NotNull java.lang.String parentId,
                                     @NotNull
                                     @NotNull Bot bot)
        Creates a channel in the guild.
        Parameters:
        name - The name for the new channel
        type - The type of the new channel
        parentId - The snowflake Id of the parent channel
        bot - The bot to create the channel as
        Returns:
        The new channel
        See Also:
        Discord Create Guild Channel