mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-04-09 06:09:39 +00:00
15 lines
449 B
C#
15 lines
449 B
C#
using Discord.WebSocket;
|
|
using MediatR;
|
|
|
|
namespace Lunaris2.Handler.GoodByeCommand
|
|
{
|
|
public record GoodbyeCommand(SocketSlashCommand Message) : IRequest;
|
|
|
|
public class GoodbyeHandler : IRequestHandler<GoodbyeCommand>
|
|
{
|
|
public async Task Handle(GoodbyeCommand message, CancellationToken cancellationToken)
|
|
{
|
|
await message.Message.RespondAsync($"Goodbye, {message.Message.User.Username}! :c");
|
|
}
|
|
}
|
|
} |