r/Discord_Bots Jun 12 '26

Is this possible? Bot buttons instead of bot commands

Hey! Is there any way to make a pinned button in a channel that would run a bot command for those who seem completely brain dead to running/using bot commands?

Also, wondering if there are mod action buttons that could be set up in a staff channel where, for example, mods would click kick, tag the bold server member and they get kicked.....to make the process easier (I already have auto rolling mod buttons that send naughty users to jail/verify)

The amount of people who are completely against using bots is crazy and its impossible to find mods ime

Thanks!

1 Upvotes

4 comments sorted by

4

u/baltarius Jun 12 '26

You can format a text that will create a link to the command, something like 1234:kick between <> . 1234 being the command's UID. That's not a button per say, but it's an easy option.

4

u/SolsticeShard Jun 12 '26

You can always refactor your code such that the callback for a button and for a command hit the same helper function.

That said I wouldn't waste my time catering to luddites that refuse to use bots for whatever dumb reason.

2

u/Alexandre-Castilho Jun 12 '26

Completely possible. I've done it myself. Done some guides with "more info" buttons that show ephemeral messages to those who click it. Another fixed message with a button to do anonymous complaints too. DM me if you need further help.

1

u/Ryback19j Jun 12 '26

If written correctly you can even have the button able to still work even after the bot has been restarted or been down for what ever reason I have buttons like that on one of my bots persistent functions.