10 questions
-1
votes
1
answer
69
views
Discord bot can't send message to User in DM
I've created a new bot. Created a server, where I and my bot are.
Run a simple code.
Example
package main
import (
"fmt"
"log"
"github.com/bwmarrin/discordgo&...
2
votes
0
answers
56
views
How to disable all buttons on a interaction using discordgo?
I've created a tic-tac-toe game in golang utilizing the discordgo library. I am attempting to disable all the buttons after a winner to prevent someone from spamming them, but no matter what I try I ...
1
vote
1
answer
999
views
using discord.go, how do I retrieve message attachments from a slash command option
I'm trying to retrieve attachments and download the contents from a slash command option with the type: ApplicationCommandOptionAttachment. My current code:
"import-file": func(s *discordgo....
1
vote
1
answer
418
views
Golang discord bot works in dm, but do not works in guild chat
Recently I decided to code my first Discord bot, and I have an issue.
When I type $help directly to bot, he sends me a message back.
However, when I send $help in discord server, I do not recieve any ...
1
vote
2
answers
1k
views
discordgo - Sending TextInput as MessageComponent returning "Invalid Form Body" with code "UNION_TYPE_CHOICES"
We are developing a Discord bot with Go language using discordgo library. I was able to send messages containing ActionRow, SelectMenu, Button components using [DiscordSession]....
-1
votes
1
answer
132
views
Why does my program not shut down when I use goroutine in main? [closed]
Context
Please, read the comments in code carefully. Everything is in them.
In case you have experience using discordgo
The full code can be found here: https://github.com/telephrag/kubinka/tree/bug (...
2
votes
1
answer
1k
views
Get replied message on MessageEvent using discordgo
I am creating a Discord bot that should accept commands that react to a replied message.
What I mean is:
the user would reply to message A with a command (let this be message B replying to A)
the bot ...
0
votes
1
answer
1k
views
How to create channel with discordgo
I want to make a bot create a channel on discord.
I have made a connection with the discord token:
// Create a new Discord session using the provided bot token.
dg, err := discordgo.New("Bot &...
0
votes
1
answer
809
views
Detect mention in discordgo
I would like my discord bot to detect mentions from command and I can't really do that, even though I could send message with mention from my bot.
Could you help me out here?
By the way I am using ...
1
vote
1
answer
1k
views
Deleting a discord message from discordgo
I am trying to delete a discord message using discordgo. Currently I have the ping pong example, however instead of writing a message I want to delete the message.
I have currently got this far:
...