#Making a button that when you push it opens a steamgame and lets you join the lobby.

1 messages · Page 1 of 1 (latest)

hollow mulch
#

I am attempting to make a green button

public async Task joinGame(CommandContext ctx, long lobbyid)

DiscordButtonComponent join_Game = new DiscordButtonComponent(ButtonStyle.Success, "join_game_button", "Join Game");

got the basic code and now trying to make it so that when players click on it it takes them to the game on steam. I am using a url steam://joinlobby/{appId}/{lobbyid}/{steamToken} which lets you join games from the link. I made it so that you have to put in a long because lobby id numbers are huge... 17 numbers long 9################. Is there anyway to make it so that when you push the button and of course it goes to the main Bot.cs it will take the long set in the JoinGame.cs (command file) to go to the Bot.cs and for the Bot.CS to actually open a link rather than having to use DiscordLinkButtonComponent, because that won't let me add colors.
Ty for any help

pine bloom
#

no, that's not a thing

hollow mulch
#

Which part?

#

All of it?

#

Could I just do it with a discordlinkbuttoncomponent or no?

pine bloom
#

yes, that's possible

hollow mulch
#

So then why is it when I try my command it doesn't work when I do it?

#

It doesn't bring up the embed

pine bloom
#

hans tag debug commands

scarlet prawnBOT
# pine bloom hans tag debug commands

To debug your command, you can hook CommandErrored or SlashCommandErrored on your command extension. It'll tell you about any potential exceptions.

Alternatively, you're also always free to attach a debugger...

hollow mulch
#

I'm not exactly sure what you mean. By book CommandErrored, I don't think anything is wrong. But what would I need to hook to test it? I'm not exactly sure.

pine bloom
#

well, if its not working, something's not working as intended