#context menu command

1 messages · Page 1 of 1 (latest)

brisk phoenix
#

they are called user/message commands in hikari

#

and can be created similarly to slash commands

odd gull
#

can you provide some code snippet

brisk phoenix
#

uhh

#

well you said without a command handler

#

so this wouldn't be a short snippet

#

hmm

odd gull
#

await self.rest.create_context_menu_command(
application=app,
type=hikari.CommandType.USER,
name="test"
)

brisk phoenix
#

yeah that's what you need

#

and then you can handle the incoming inters as usual

odd gull
#

I dont see the command for some reason

#

restrted the bot many times

#

its only in one guild

brisk phoenix
#

have you tried reloading your discord app

#

Ctrl+R

#

also ngl, I would highly recommend you use a command handler if you're not building one yourself, that is

brisk phoenix
odd gull
#

I got it working though

brisk phoenix
#

I mean

odd gull
#

And yeah CTRL + R worked but the client was blank for a minute lol

brisk phoenix
#

if you hate yourself, you can just use hikari raw

#

but doing all the app command stuff specifically is hard

odd gull
#

Its not because I hate myself, with a command handler its hard to achieve what I want

brisk phoenix
odd gull
#

I made this bot

#

You can yry

brisk phoenix
#

ahh ic

#

so you are making a command handler

odd gull
#

People can make their own slash commands

brisk phoenix
#

just.. publically accessible :p

odd gull
#

So I needed to make own stuff

#

For everything

brisk phoenix
#

fair enough

odd gull
#

I have one question

#

Discord.py have a wait_for thing

How can I create that

brisk phoenix
#

by using wait_for

#

lol

odd gull
#

Is that available in hikari too?

odd gull
#

Ahh I didn't know