#it is an option should be selected from

1 messages · Page 1 of 1 (latest)

slow pond
#

boop

#

hey

keen vapor
#

hello

slow pond
#

you can set it with a slash command, but will need a way to save it

#

the slash command cannot access the client event you use unvrole in

keen vapor
#

so should i use it's id ?

west plover
#

Is this guildMemberAdd event inside of the interactionCreate event?

slow pond
#

If thats a constant

slow pond
slow pond
west plover
#

Thats why i am asking, since he got the result and vscode shows it as defined

slow pond
#

Ahh

#

gotchu

#

you can save the id in a file or hardcode in the file you have the event in

#

changing it with a slash command i would recommend writing to a file, that way you wont have to do it everytime the bot reloads

west plover
#

Or databases, or store it in the client as a value and change the value in another file

slow pond
#

yea db is writing to a file but then more advanced xd

keen vapor
#

bruh i did run the command , it says : missing perms

mild pendantBOT
#

• Bots cannot moderate (kick/ban/nickname/...) a target with a higher or equally high highest role or the guild owner.
• Bots cannot modify (edit/add/remove) roles that are higher or equally high compared to the bot's highest role.
• The ADMINISTRATOR permission does not skip these checks.

keen vapor
#

@slow pond working now

slow pond
#

Eyyyy nice

keen vapor
#

@west plover working now

slow pond
#

whatd you do

keen vapor
#

thank you guys

keen vapor
#

only

slow pond
#

ahh

#

yea thats also an issue

keen vapor
#

yeah

slow pond
#

how do you define the role tho

#

cus if its set through a command

keen vapor
#

1m

slow pond
#

the event shouldnt be able to access it unless you made it a global variable

keen vapor
slow pond
#

yea

#

but that info isnt accessible to the event

keen vapor
#

yup

#

umm i have another question

#
client.on('interactionCreate', interaction => {
            if ( author : interaction.user && interaction.customId == 'true') {
}

this is absolutly wrong

#

how do i make it so if the user who used the command he can only use the button

keen vapor
slow pond
#

although thats code to distinguish a message being sent after a slash command interaction

keen vapor
#

ok

#

@slow pond

#

i did that

#

but there is an error

slow pond
#

its a filter

#

so in the code where i handle the command

#

i put this code

#

which awaits a message

keen vapor
#

this command has many buttons .. so when i click on them they don't work

slow pond
#

only you want to await a buttonpress, so you can try to set up a collector or see if you can create a database or something

keen vapor
keen vapor
#

@west plover can i use " ephemeral " in a message has buttons ?

west plover