Takaro - v0.6.0
    Preparing search index...

    Function DiscordApiFactory

    • DiscordApi - factory interface

      Parameters

      • Optionalconfiguration: Configuration
      • OptionalbasePath: string
      • Optionalaxios: AxiosInstance

      Returns {
          discordControllerDeleteMessage(
              channelId: string,
              messageId: string,
              options?: any,
          ): AxiosPromise<APIOutput>;
          discordControllerGetChannels(
              id: string,
              options?: any,
          ): AxiosPromise<DiscordChannelOutputArrayDTOAPI>;
          discordControllerGetInvite(
              options?: any,
          ): AxiosPromise<DiscordInviteOutputDTO>;
          discordControllerGetRoles(
              id: string,
              options?: any,
          ): AxiosPromise<DiscordRoleOutputArrayDTOAPI>;
          discordControllerSearch(
              guildSearchInputDTO?: GuildSearchInputDTO,
              options?: any,
          ): AxiosPromise<GuildOutputArrayDTOAPI>;
          discordControllerSendMessage(
              id: string,
              sendMessageInputDTO?: SendMessageInputDTO,
              options?: any,
          ): AxiosPromise<MessageOutputDTOAPI>;
          discordControllerUpdateGuild(
              id: string,
              guildApiUpdateDTO?: GuildApiUpdateDTO,
              options?: any,
          ): AxiosPromise<GuildOutputDTOAPI>;
          discordControllerUpdateMessage(
              channelId: string,
              messageId: string,
              sendMessageInputDTO?: SendMessageInputDTO,
              options?: any,
          ): AxiosPromise<MessageOutputDTOAPI>;
      }

      • discordControllerDeleteMessage: function
        • Delete a Discord message. The bot must have sent the original message or have appropriate permissions. Returns an empty response on success. Required permissions: SEND_DISCORD_MESSAGE
          OperationId: DiscordControllerDeleteMessage

          Parameters

          • channelId: string
          • messageId: string
          • Optionaloptions: any

            Override http request option.

          Returns AxiosPromise<APIOutput>

      • discordControllerGetChannels: function
      • discordControllerGetInvite: function
      • discordControllerGetRoles: function
      • discordControllerSearch: function
      • discordControllerSendMessage: function
      • discordControllerUpdateGuild: function
      • discordControllerUpdateMessage: function
        • Update an existing Discord message with new content or embed. Requires the bot to have sent the original message. Required permissions: SEND_DISCORD_MESSAGE
          OperationId: DiscordControllerUpdateMessage

          Parameters

          • channelId: string
          • messageId: string
          • OptionalsendMessageInputDTO: SendMessageInputDTO

            SendMessageInputDTO

          • Optionaloptions: any

            Override http request option.

          Returns AxiosPromise<MessageOutputDTOAPI>