#Command successful but showing as failed

1 messages · Page 1 of 1 (latest)

outer flame
#

I have a command that works perfectly fine, but when used as a slash command it shows as if it failed.

@lightbulb.command("tabela", "Tabela wyników na tym serwerze")
@lightbulb.implements(lightbulb.PrefixCommand, lightbulb.SlashCommand)
async def scoreboard(ctx: lightbulb.Context):
    pages = []
    # does stuff, fetches from the database and fills the pages list
    navigator = nav.NavigatorView(pages=pages)
    await navigator.send(ctx.channel_id)

I'm using the NavigatorView class from hikari-miru. Does anyone know why this happens?

surreal saddle
#

iirc it does that if not respond to, you created a new msg, not responded to cmd

outer flame
#

Oh yeah

#

Makes sense

#

I'll just respond an additional message with a mention then

#

Thanks a lot

surreal saddle
gray crown
#

@outer flame instead, you can just do ```py
await ctx.respond(navigator)

#

And that should cover prefix and slash command perfectly

outer flame
#

You mean ctx.respond

gray crown
#

Yeah, sorry

outer flame
#

Alright ill try it

#

Thanks again

#

Good community here

gray crown
#

Np!

#

Glad it helped out :)

idle granite
gray crown
#

please open a new post

#

and post any traceback (error) you may have

#

@idle granite