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.
      • createMessageBuilderDelegate

        public static MessageBuilderDelegate createMessageBuilderDelegate​()
        Creates a new message builder delegate.
        Returns:
        A new 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.
      • 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.
      • 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.