#(Niklas) Denizen x Discord
54 messages · Page 1 of 1 (latest)
(Niklas) Denizen x Discord
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
!g denizen and discord
View the guide page 'Denizen and Discord: dDiscordBot' at: https://guide.denizenscript.com/guides/expanding/ddiscordbot.html
if you have any questions about implementation, feel free to let us know here. Otherwise,
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@foggy robin
Thread closed as resolved.
okok
Thread was manually reopened by @foggy robin.
i got the bot on my dc
but its offline 😦
i have the after start event
discord_start:
type: world
debug: false
events:
after server start:
- ~discordconnect id:roaring20s token:<secret[mytoken]>
- ~discordmessage id:roaring20s channel:1397841981291626527 "Bot started!"```
i have of course changed the mytoken to the secret token give by the bot 🙂
logs
Content of Server Log Paste #135064: Edit of paste 135062: Edit of paste 135060: Edit of paste 135059: Denizen Debug Logs From Roaring 20s!... pasted 2025/07/24 00:38:15 UTC-07:00, Paste length: 4318 characters across 47 lines, Content: `Java Version: 21.0.4 Up-time: 5m 52s Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1397), Spigot:...
Error Message: Tag 'secret' requires input of type 'SecretTag' but received input 'x'.
how do i do this?
ahh okok
i need to put it in the secrets file
but now there is another problem 😦
Content of Server Log Paste #135067: Denizen Debug Logs From Roaring 20s!... pasted 2025/07/24 00:41:47 UTC-07:00, Paste length: 5285 characters across 54 lines, Content: Java Version: 21.0.4 Up-time: 12m Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1397), Spigot: 1.3.1-SNAPSHOT (build 7144-DEV) Script Containers: 152, Events: 112
my bot settings
as you can see it is on 😦
okokok i have fixed this too 🙂
Thanks to chatgpt
but now i want to add roles via denizen to a user
What i wanna do:
Get the id of a user in discord via a command like:
/mcconnect name
then it should save the players id so that i can send a message to him 😦
Or add roles to a user.
!t discordgrouptag.member
Returns the group member that best matches the input name, or null if there's no match.
For input of username#id, will always only match for the exact user.
For input of only the username, return value might be unexpected if multiple members have the same username
(this happens more often than you might expect - many users accidentally join new Discord groups from the
web on a temporary web account, then rejoin on a local client with their 'real' account).
dDiscordBot
DiscordUserTag
Returns the ID number of the user.
dDiscordBot
ElementTag(Number)
!c discord
dDiscordBot
external
discord [id:<id>] [disconnect/add_role/start_typing/remove_role/status (status:<status>) (activity:<activity>)/rename] (<value>) (message_id:<id>) (channel:<channel>) (user:<user>) (group:<group>) (role:<role>) (url:<url>)
Interacts with Discord.
Interacts with Discord.
Commands may fail if the bot does not have permission within the Discord group to perform them.
When setting the status of the Discord bot, the status argument can be: ONLINE, DND, IDLE, or INVISIBLE,
and the activity argument can be: PLAYING, STREAMING, LISTENING, or WATCHING.
Streaming activity requires a 'url:' input.
The command should always be ~waited for. See !language ~waitable.
yea yea i got these tags. but how do i combine this in minecraft and discord:
You click a block in minecraft then you get a dm on discord 😦
or a role
Depends how you want to implement it.
How you want to have the player connect their discord account with their minecraft account
either a minecraft or a discord command
Well the best thing should be is to make such a command (can be done either way) or both if you want to make sure they own both the accounts.
Then flag the player with the discordusertag and flag the discorduser with the playertag.
Then whenever the player ingame does something that needs to use their discord account you can geab their linked account tag through the flag
How new are you with denizen?
not new in denizen but new in discorddenizen
i know how to connect and send a message in a defined channel
but thats it xD
Most info out there is in the guide and within the meta documents.
I suggest looking through the meta docs more.
With the discordmessage command you can also send messages to specific users with their discordusertag.
You can also create slash command with discord to make the linking accounts thing easier. And all discord objects are flaggable like discordusertag discordgrouptag etc
I have an old example at #showcase message if you want to use that as a base
i have no clue how to use it