Skip to content

Slash commands not returning #858

@Inceptofn

Description

@Inceptofn

Summary

discord.Channel.slash_commands() returns an empty list

Reproduction Steps

Get a channel and invoke the slash_commands method on it. It returns nothing. (running on final 2.0.1)

Code

channel = bot.get_channel(CLAIM_COMMAND_CHANNEL)
async for command in channel.slash_commands():
    print(command.name)

Expected Results

Should get the slash commands

Actual Results

Doesnt get the slash commands

System Information

  • Python v3.12.9-final
  • discord.py-self v2.0.1-final
  • aiohttp v3.12.13
  • system info: Windows 11 10.0.26100

Checklist

  • I have confirmed I am using unmodified discord.py-self and not the upstream discord.py.
  • I am using a user token (and it isn't visible in the code).
  • I have searched the open issues for duplicates.
  • I have searched closed issues for resolved duplicates.
  • I have confirmed the development version doesn't resolve the issue.
  • I have shared the entire traceback.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions