From 2b6ecc4292cfbd1adb690a33223a6344a34fe121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20B=C3=BCtler?= Date: Fri, 29 Mar 2024 01:43:56 +0100 Subject: [PATCH] dont use any discordgo components --- pkg/controller/DiscordController.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkg/controller/DiscordController.go b/pkg/controller/DiscordController.go index 41fbc79..7324aee 100644 --- a/pkg/controller/DiscordController.go +++ b/pkg/controller/DiscordController.go @@ -221,7 +221,7 @@ func (dc *DiscordController) GetDiscordUserCard(searchString string, buttonsEnab if !shortCard { // Available VLANs - var vlanRow discordgo.ActionsRow + // var vlanRow discordgo.ActionsRow vlansMissing := false if len(user.Sessions) > 0 { switchIP := user.Sessions[0].SwitchIP @@ -263,6 +263,7 @@ func (dc *DiscordController) GetDiscordUserCard(searchString string, buttonsEnab */ } } else { + log.Debug("vlan is missing") vlansMissing = true } @@ -295,16 +296,20 @@ func (dc *DiscordController) GetDiscordUserCard(searchString string, buttonsEnab } if !vlansMissing { - card.Components = append(card.Components, vlanRow) + /* + card.Components = append(card.Components, vlanRow) + */ actions = append(actions, discordgo.Button{ Label: "Cancel", Style: discordgo.SecondaryButton, Disabled: !buttonsEnabled, CustomID: "findCancelBtn", }) - card.Components = append(card.Components, discordgo.ActionsRow{ - Components: actions, - }) + /* + card.Components = append(card.Components, discordgo.ActionsRow{ + Components: actions, + }) + */ } }