mirror of
https://github.com/yawaflua/PL_JusticeBot.git
synced 2025-12-16 02:16:20 +02:00
добавил патенты, верификацию, сделал паспорта, ип ооо
This commit is contained in:
27
Justice/Commands/Bizness.cs
Normal file
27
Justice/Commands/Bizness.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Discord;
|
||||
using Discord.Interactions;
|
||||
|
||||
namespace DiscordApp.Justice.Commands
|
||||
{
|
||||
public class Bizness : InteractionModuleBase<SocketInteractionContext>
|
||||
{
|
||||
[SlashCommand("bizness-embed", "Отправляет сообщение с кнопками для регистрации")]
|
||||
[DefaultMemberPermissions(GuildPermission.Administrator)]
|
||||
public async Task sendBiznessEmbed()
|
||||
{
|
||||
await DeferAsync(true);
|
||||
var Embed = new EmbedBuilder()
|
||||
.WithTitle("**Регистрация бизнеса!**")
|
||||
.WithDescription("Ниже вы можете нажать на кнопку для создания ИП или ООО!")
|
||||
.WithColor(Color.Blue)
|
||||
.Build();
|
||||
var Components = new ComponentBuilder()
|
||||
.WithButton(new ButtonBuilder() { CustomId = "NewIndividualEntrepreneur", Label = "ИП", Style = ButtonStyle.Primary })
|
||||
.WithButton(new ButtonBuilder() { CustomId = "NewBizness", Label = "ООО", Style = ButtonStyle.Primary })
|
||||
.Build();
|
||||
await Context.Channel.SendMessageAsync(embed: Embed, components: Components);
|
||||
await FollowupAsync("OK!");//, ephemeral: true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user