#(talfein) Missing Context/Question about Selections

12 messages · Page 1 of 1 (latest)

marble dirge
#

Hey there guys, I've been messing with the dDiscordBot so I can setup an application system for my server through discord. I've ran into a sort of irritating snag, but not really that important. I'm trying to use the on discord selection used id: event to give a button to the application message. I've gotten it all set up, but I can't figure out how to grab the DiscordUserTag of the person clicking the selection. The <context.user doesn't work with the event so idk. I just wanted to log who reviewed the application for other staff to see.

Paste: https://paste.denizenscript.com/View/131009

Line: 438

Log: https://paste.denizenscript.com/View/131010

reef egretBOT
#

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.

marble dirge
#

Still workin on it, but it's almost ready besides the last thing I wanted to add.

#

ignore emojis, copied right from the guidebook lol

#

It could be there is just no actual discord packet for who clicks buttons, so /shrug

cosmic ginkgo
#

!e on discord selection used

ruby tuskBOT
# cosmic ginkgo !e on discord selection used
Required Plugins or Platforms

dDiscordBot

Group

Discord

Event Lines

discord selection used

Switches

for:<bot> to only process the event for a specified Discord bot.
channel:<channel_id> to only process the event when it occurs in a specified Discord channel.
group:<group_id> to only process the event for a specified Discord group.
id:<menu_id> to only process the event for a specified Discord selection menu.

Triggers

when a Discord user uses a selection menu.

Context

<context.bot> returns the relevant DiscordBotTag.
<context.channel> returns the DiscordChannelTag.
<context.group> returns the DiscordGroupTag.
<context.interaction> returns the DiscordInteractionTag.
<context.menu> returns the selection menu as a DiscordSelectionTag.
<context.option> returns the selected option as a MapTag.
<context.message> returns the relevant message the selection was on.

cosmic ginkgo
#

!t interaction.user

ruby tuskBOT
marble dirge
#

Will check tomorrow ty