/// <inheritdoc />
 public virtual Task <Result> DeleteWebhookAsync(Snowflake webhookID, CancellationToken ct = default)
 {
     return(_discordHttpClient.DeleteAsync
            (
                $"webhooks/{webhookID}",
                ct: ct
            ));
 }
 /// <inheritdoc />
 public virtual Task <Result> DeleteGlobalApplicationCommandAsync
 (
     Snowflake applicationID,
     Snowflake commandID,
     CancellationToken ct
 )
 {
     return(_discordHttpClient.DeleteAsync($"applications/{applicationID}/commands/{commandID}", ct: ct));
 }
 /// <inheritdoc />
 public virtual Task <Result> DeleteChannelAsync
 (
     Snowflake channelID,
     CancellationToken ct = default
 )
 {
     return(_discordHttpClient.DeleteAsync
            (
                $"channels/{channelID}",
                ct: ct
            ));
 }
예제 #4
0
 /// <inheritdoc />
 public virtual Task <Result> DeleteGuildAsync(Snowflake guildID, CancellationToken ct = default)
 {
     return(_discordHttpClient.DeleteAsync
            (
                $"guilds/{guildID}",
                ct: ct
            ));
 }
예제 #5
0
 /// <inheritdoc />
 public virtual Task <IDeleteRestEntityResult> LeaveGuildAsync(Snowflake guildID, CancellationToken ct = default)
 {
     return(_discordHttpClient.DeleteAsync
            (
                $"users/@me/guilds/{guildID}",
                ct: ct
            ));
 }
 /// <inheritdoc />
 public Task <Result> DeleteStageInstance(Snowflake channelID, CancellationToken ct = default)
 {
     return(_discordHttpClient.DeleteAsync
            (
                $"stage-instances/{channelID}",
                ct: ct
            ));
 }
예제 #7
0
 /// <inheritdoc />
 public virtual Task <Result <IInvite> > DeleteInviteAsync
 (
     string inviteCode,
     CancellationToken ct = default
 )
 {
     return(_discordHttpClient.DeleteAsync <IInvite>
            (
                $"invite/{inviteCode}",
                ct: ct
            ));
 }
 /// <inheritdoc />
 public virtual Task <Result <ITemplate> > DeleteGuildTemplateAsync
 (
     Snowflake guildID,
     string templateCode,
     CancellationToken ct = default
 )
 {
     return(_discordHttpClient.DeleteAsync <ITemplate>
            (
                $"guilds/{guildID}/templates/{templateCode}",
                ct: ct
            ));
 }
예제 #9
0
 /// <inheritdoc />
 public virtual Task <IDeleteRestEntityResult> DeleteGuildEmojiAsync
 (
     Snowflake guildID,
     Snowflake emojiID,
     CancellationToken ct = default
 )
 {
     return(_discordHttpClient.DeleteAsync
            (
                $"guilds/{guildID}/emojis/{emojiID}",
                ct: ct
            ));
 }