mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Greatly unboilerplated and simplified nadeko interaction button construction
This commit is contained in:
@@ -433,7 +433,6 @@ public partial class Xp : NadekoModule<XpService>
|
||||
? GetText(strs.in_use)
|
||||
: GetText(strs.use),
|
||||
"XP_SHOP_USE",
|
||||
ButtonStyle.Primary,
|
||||
emote: Emoji.Parse("👐"),
|
||||
isDisabled: ownedItem.IsUsing);
|
||||
|
||||
@@ -448,7 +447,6 @@ public partial class Xp : NadekoModule<XpService>
|
||||
{
|
||||
var button = new ButtonBuilder(GetText(strs.buy),
|
||||
"XP_SHOP_BUY",
|
||||
ButtonStyle.Primary,
|
||||
emote: Emoji.Parse("💰"));
|
||||
|
||||
var inter = new SimpleInteraction<(string key, XpShopItemType type)?>(
|
||||
|
Reference in New Issue
Block a user