From e1892c4ff45eb79d15ef6f44035bed042df33e74 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Fri, 12 Jul 2024 16:24:49 +0000 Subject: [PATCH] remove: Removed selfhost button from .donate, no idea why it was there in the first place --- src/NadekoBot/Modules/Help/Help.cs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/NadekoBot/Modules/Help/Help.cs b/src/NadekoBot/Modules/Help/Help.cs index fc29aef87..bb8f0b83e 100644 --- a/src/NadekoBot/Modules/Help/Help.cs +++ b/src/NadekoBot/Modules/Help/Help.cs @@ -519,31 +519,10 @@ public sealed partial class Help : NadekoModule "https://nadekobot.readthedocs.io/en/latest/")) .SendAsync(); - - private Task SelfhostAction(SocketMessageComponent smc) - => smc.RespondConfirmAsync(_sender, - """ - - In case you don't want or cannot Donate to NadekoBot project, but you - - NadekoBot is a free and [open source](https://gitlab.com/kwoth/nadekobot) project which means you can run your own "selfhosted" instance on your computer. - - *Keep in mind that running the bot on your computer means that the bot will be offline when you turn off your computer* - - - You can find the selfhosting guides by using the `.guide` command and clicking on the second link that pops up. - - If you decide to selfhost the bot, still consider [supporting the project](https://patreon.com/join/nadekobot) to keep the development going :) - """, - true); - [Cmd] [OnlyPublicBot] public async Task Donate() { - var selfhostInter = _inter.Create(ctx.User.Id, - new ButtonBuilder( - emote: new Emoji("🖥️"), - customId: "donate:selfhosting", - label: "Selfhosting"), - SelfhostAction); - var eb = _sender.CreateEmbed() .WithOkColor() .WithTitle("Thank you for considering to donate to the NadekoBot project!"); @@ -580,7 +559,6 @@ public sealed partial class Help : NadekoModule await Response() .Channel(await ctx.User.CreateDMChannelAsync()) .Embed(eb) - .Interaction(selfhostInter) .SendAsync(); _ = ctx.OkAsync();