Skip to content

Commit 91fecff

Browse files
committed
refactor name
1 parent 65678d4 commit 91fecff

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Disc.NET.Client.SDK/Client.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ await PostAsync(commandJson, $"applications/{_clientConfiguration.ApplicationId}
4646
cancellation);
4747
}
4848

49-
public async Task InteractionRespondingAsync(string interactionId, string interactionToken, string responseJson,
49+
public async Task SendInteractionResponseAsync(string interactionId, string interactionToken, string responseJson,
5050
CancellationToken cancellation = default)
5151
{
5252
var url = $"https://discord.com/api/v10/interactions/{interactionId}/{interactionToken}/callback";
5353
await PostAsync(responseJson, url, cancellation);
5454
}
5555

56-
public async Task InteractionRespondingAsync(string interactionId, string interactionToken, ApiMessage message,
56+
public async Task SendInteractionResponseAsync(string interactionId, string interactionToken, ApiMessage message,
5757
bool isEphemeral = false, CancellationToken cancellation = default)
5858
{
5959
var teste = _serializer.Serialize(new Teste()

src/Disc.NET.Client.SDK/Interfaces/IClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public interface IClient
1212
Task RegisterGlobalSlashCommandAsync(string commandJson, CancellationToken cancellation = default);
1313
Task RegisterGuildSlashCommandAsync(string commandJson, string guildId, CancellationToken cancellation = default);
1414

15-
Task InteractionRespondingAsync(string interactionId, string interactionToken, string responseJson, CancellationToken cancellation = default);
15+
Task SendInteractionResponseAsync(string interactionId, string interactionToken, string responseJson, CancellationToken cancellation = default);
1616

17-
Task InteractionRespondingAsync(string interactionId, string interactionToken, ApiMessage message, bool isEphemeral = false, CancellationToken cancellation = default);
17+
Task SendInteractionResponseAsync(string interactionId, string interactionToken, ApiMessage message, bool isEphemeral = false, CancellationToken cancellation = default);
1818

1919
}

src/Disc.NET.Commands/Responses/InteractionResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public async Task SendMessageAsync(Message message, CancellationToken cancellati
1717
await _client.SendMessageAsync(ChannelId, message.Build(), cancellation);
1818
}
1919

20-
public async Task InteractionRespondingAsync(Message message, bool ephemeral = false, CancellationToken cancellation = default)
20+
public async Task SendInteractionResponseAsync(Message message, bool ephemeral = false, CancellationToken cancellation = default)
2121
{
22-
await _client.InteractionRespondingAsync
22+
await _client.SendInteractionResponseAsync
2323
(
2424
InteractionId,
2525
InteractionToken,

src/Disc.NET/Handlers/EventHandlers/SlashCommandHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private async Task SendInteractionResponseAsync(JsonDocument contextJson)
4747
}
4848
};
4949

50-
await Client.InteractionRespondingAsync(interactionId, interactionToken,
50+
await Client.SendInteractionResponseAsync(interactionId, interactionToken,
5151
Serializer.Serialize(responseObject));
5252
}
5353
}

0 commit comments

Comments
 (0)