Class DelegateFactory



  • public class DelegateFactory
    extends Object
    This class is used by Javacord internally. You probably won't need it ever.
    • Method Detail

      • createDiscordApiBuilderDelegate

        public static DiscordApiBuilderDelegate createDiscordApiBuilderDelegate​()
        Creates a new discord api builder delegate.
        Returns:
        A new discord api builder delegate.
      • createEmbedBuilderDelegate

        public static EmbedBuilderDelegate createEmbedBuilderDelegate​()
        Creates a new embed builder delegate.
        Returns:
        A new embed builder delegate.
      • createActionRowBuilderDelegate

        public static ActionRowBuilderDelegate createActionRowBuilderDelegate​()
        Creates a new ActionRow builder delegate.
        Returns:
        A new ActionRow builder delegate.
      • createButtonBuilderDelegate

        public static ButtonBuilderDelegate createButtonBuilderDelegate​()
        Creates a new Button builder delegate.
        Returns:
        A new Button builder delegate.
      • createSelectMenuBuilderDelegate

        public static SelectMenuBuilderDelegate createSelectMenuBuilderDelegate​()
        Creates a new select menu builder delegate.
        Returns:
        A new select menu builder delegate.
      • createSelectMenuOptionBuilderDelegate

        public static SelectMenuOptionBuilderDelegate createSelectMenuOptionBuilderDelegate​()
        Creates a new select menu option builder delegate.
        Returns:
        A new select menu option builder delegate.
      • createAllowedMentionsBuilderDelegate

        public static AllowedMentionsBuilderDelegate createAllowedMentionsBuilderDelegate​()
        Creates a new mention builder delegate.
        Returns:
        A new mention builder delegate.
      • createMessageBuilderDelegate

        public static MessageBuilderDelegate createMessageBuilderDelegate​()
        Creates a new message builder delegate.
        Returns:
        A new message builder delegate.
      • createInteractionMessageBuilderDelegate

        public static InteractionMessageBuilderDelegate createInteractionMessageBuilderDelegate​()
        Creates a new interaction message builder delegate.
        Returns:
        A new webhook message builder delegate.
      • createWebhookMessageBuilderDelegate

        public static WebhookMessageBuilderDelegate createWebhookMessageBuilderDelegate​()
        Creates a new webhook message builder delegate.
        Returns:
        A new webhook message builder delegate.
      • createPermissionsBuilderDelegate

        public static PermissionsBuilderDelegate createPermissionsBuilderDelegate​()
        Creates a new permissions builder delegate.
        Returns:
        A new permissions builder delegate.
      • createPermissionsBuilderDelegate

        public static PermissionsBuilderDelegate createPermissionsBuilderDelegate​(Permissions permissions)
        Creates a new permissions builder delegate initialized with the given permissions.
        Parameters:
        permissions - The permissions which should be copied.
        Returns:
        A new permissions builder delegate initialized with the given permissions.
      • createChannelCategoryBuilderDelegate

        public static ChannelCategoryBuilderDelegate createChannelCategoryBuilderDelegate​(Server server)
        Creates a new channel category builder delegate.
        Parameters:
        server - The server of the channel category.
        Returns:
        A new channel category builder delegate.
      • createServerTextChannelBuilderDelegate

        public static ServerTextChannelBuilderDelegate createServerTextChannelBuilderDelegate​(Server server)
        Creates a new server text channel builder delegate.
        Parameters:
        server - The server of the server text channel.
        Returns:
        A new server text channel builder delegate.
      • createServerVoiceChannelBuilderDelegate

        public static ServerVoiceChannelBuilderDelegate createServerVoiceChannelBuilderDelegate​(Server server)
        Creates a new server voice channel builder delegate.
        Parameters:
        server - The server of the server voice channel.
        Returns:
        A new server voice channel builder delegate.
      • createCustomEmojiBuilderDelegate

        public static CustomEmojiBuilderDelegate createCustomEmojiBuilderDelegate​(Server server)
        Creates a new custom emoji builder delegate.
        Parameters:
        server - The server of the custom emoji.
        Returns:
        A new custom emoji builder delegate.
      • createWebhookBuilderDelegate

        public static WebhookBuilderDelegate createWebhookBuilderDelegate​(ServerTextChannel channel)
        Creates a new webhook builder delegate.
        Parameters:
        channel - The server text channel of the webhook.
        Returns:
        A new webhook builder delegate.
      • createServerBuilderDelegate

        public static ServerBuilderDelegate createServerBuilderDelegate​(DiscordApi api)
        Creates a new server builder delegate.
        Parameters:
        api - The discord api instance.
        Returns:
        A new server builder delegate.
      • createRoleBuilderDelegate

        public static RoleBuilderDelegate createRoleBuilderDelegate​(Server server)
        Creates a new role builder delegate.
        Parameters:
        server - The server for which the role should be created.
        Returns:
        A new role builder delegate.
      • createInviteBuilderDelegate

        public static InviteBuilderDelegate createInviteBuilderDelegate​(ServerChannel channel)
        Creates a new invite builder delegate.
        Parameters:
        channel - The channel for the invite.
        Returns:
        A new invite builder delegate.
      • createAccountUpdaterDelegate

        public static AccountUpdaterDelegate createAccountUpdaterDelegate​(DiscordApi api)
        Creates a new account updater delegate.
        Parameters:
        api - The discord api instance.
        Returns:
        A new account updater delegate.
      • createSlashCommandUpdaterDelegate

        public static SlashCommandUpdaterDelegate createSlashCommandUpdaterDelegate​(long commandId)
        Creates a new slash command updater delegate.
        Parameters:
        commandId - The slash command id.
        Returns:
        A new slash command updater delegate.
      • createGroupChannelUpdaterDelegate

        public static GroupChannelUpdaterDelegate createGroupChannelUpdaterDelegate​(GroupChannel channel)
        Creates a new group channel updater delegate.
        Parameters:
        channel - The channel to update.
        Returns:
        A new group channel updater delegate.
      • createServerChannelUpdaterDelegate

        public static ServerChannelUpdaterDelegate createServerChannelUpdaterDelegate​(ServerChannel channel)
        Creates a new server channel updater delegate.
        Parameters:
        channel - The channel to update.
        Returns:
        A new server channel updater delegate.
      • createServerTextChannelUpdaterDelegate

        public static ServerTextChannelUpdaterDelegate createServerTextChannelUpdaterDelegate​(ServerTextChannel channel)
        Creates a new server text channel updater delegate.
        Parameters:
        channel - The channel to update.
        Returns:
        A new server text channel updater delegate.
      • createServerVoiceChannelUpdaterDelegate

        public static ServerVoiceChannelUpdaterDelegate createServerVoiceChannelUpdaterDelegate​(ServerVoiceChannel channel)
        Creates a new server voice channel updater delegate.
        Parameters:
        channel - The channel to update.
        Returns:
        A new server voice channel updater delegate.
      • createCustomEmojiUpdaterDelegate

        public static CustomEmojiUpdaterDelegate createCustomEmojiUpdaterDelegate​(KnownCustomEmoji emoji)
        Creates a new custom emoji updater delegate.
        Parameters:
        emoji - The custom emoji to update.
        Returns:
        A new custom emoji updater delegate.
      • createRoleUpdaterDelegate

        public static RoleUpdaterDelegate createRoleUpdaterDelegate​(Role role)
        Creates a new role updater delegate.
        Parameters:
        role - The role to update.
        Returns:
        A new role updater delegate.
      • createServerUpdaterDelegate

        public static ServerUpdaterDelegate createServerUpdaterDelegate​(Server server)
        Creates a new server updater delegate.
        Parameters:
        server - The server to update.
        Returns:
        A new server updater delegate.
      • createWebhookUpdaterDelegate

        public static WebhookUpdaterDelegate createWebhookUpdaterDelegate​(Webhook webhook)
        Creates a new webhook updater delegate.
        Parameters:
        webhook - The webhook to update.
        Returns:
        A new webhook updater delegate.
      • createAudioSourceBaseDelegate

        public static AudioSourceBaseDelegate createAudioSourceBaseDelegate​(DiscordApi api)
        Creates a new audio source base delegate.
        Parameters:
        api - The discord api instance.
        Returns:
        A new audio source base delegate.
      • createSlashCommandBuilderDelegate

        public static SlashCommandBuilderDelegate createSlashCommandBuilderDelegate​()
        Creates a new slash command builder delegate.
        Returns:
        The slash command builder delegate.
      • createSlashCommandOptionBuilderDelegate

        public static SlashCommandOptionBuilderDelegate createSlashCommandOptionBuilderDelegate​()
        Creates a new slash command option builder delegate.
        Returns:
        The slash command option builder delegate.
      • createSlashCommandPermissionsUpdaterDelegate

        public static SlashCommandPermissionsUpdaterDelegate createSlashCommandPermissionsUpdaterDelegate​(Server server)
        Creates a new slash command permissions updater delegate.
        Parameters:
        server - The server.
        Returns:
        The slash command permissions updater delegate.
      • createSlashCommandPermissionsBuilderDelegate

        public static SlashCommandPermissionsBuilderDelegate createSlashCommandPermissionsBuilderDelegate​()
        Creates a new slash command permissions builder delegate.
        Returns:
        The slash command permissions builder delegate.
      • createSlashCommandOptionChoiceBuilderDelegate

        public static SlashCommandOptionChoiceBuilderDelegate createSlashCommandOptionChoiceBuilderDelegate​()
        Creates a new slash command option choice builder delegate.
        Returns:
        The slash command option choice builder delegate.
      • getExceptionLoggerDelegate

        public static ExceptionLoggerDelegate getExceptionLoggerDelegate​()
        Gets the exception logger delegate.
        Returns:
        The exception logger delegate.
      • getDiscordExceptionValidator

        public static DiscordExceptionValidator getDiscordExceptionValidator​()
        Gets the discord exception validator.
        Returns:
        The discord exception validator.