#User Install Commands

1 messages · Page 1 of 1 (latest)

ember mural
#

Hey, I'd like to know if using commands in DMs via User Install is supported in Pycord, since I currently cannot find a way to do so. Thanks in advance

north plover
#

You pass integration_types= to the slash command

#

A set that contains discord.IntegrationType

dusky pineBOT
ember mural
north plover
#

If whatever is a set of whatever integrationtypes then yes

ember mural
lethal lava
#

you can also set a default integration type in your bot definition

ember mural
lethal lava
#

default_command_integration_types

north plover
ember mural
# north plover Code?

I just added this part to each command: integration_types=discord.IntegrationType.user_install

lethal lava
#

it needs to be a set

#

{}

north plover
#

I said it gotta be a set

tulip kayakBOT
ember mural
lethal lava
#

dont pass it as bare value, pass it as set ...= {discord.IntegrationType.user_install}