mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
20 lines
584 B
C#
20 lines
584 B
C#
using Discord;
|
|
using Discord.Commands;
|
|
using Discord.Interactions;
|
|
|
|
namespace Content.DiscordBot.Modules;
|
|
|
|
public sealed class AccountLinkingModule : ModuleBase<SocketCommandContext>
|
|
{
|
|
[SlashCommand("create", "Creates the message with the linking popup. Only has to be run once.")]
|
|
[Discord.Interactions.RequireOwner]
|
|
public Task CreateAsync()
|
|
{
|
|
var component = new ComponentBuilder()
|
|
.WithButton("Link your SS14 account here!", "link-ss14-account")
|
|
.Build();
|
|
|
|
return ReplyAsync(string.Empty, components: component);
|
|
}
|
|
}
|