Skip to content

[BUG] Sometimes missing channel id and message id in message when ctx.send/edit #870

@Toricane

Description

@Toricane

Describe the bug.

When trying to send message, edit interaction, or edit message, message id and channel id is sometimes missing. Usually it's always missing when ctx.send, but sometimes it's missing when edit, reported by paginator ext users

List the steps.

  1. Make a command
  2. Try to send and edit:
msg = await ctx.send("test")
print(msg.id, msg.channel_id)
msg = await ctx.edit("edit")
print(msg.id, msg.channel_id)
await msg.edit("test")
print(msg.id, msg.channel_id)

What you expected.

Message should always have message and channel IDs

msg = await ctx.send("test")
print(msg.id, msg.channel_id)
msg = await ctx.edit("edit")
print(msg.id, msg.channel_id)
await msg.edit("test")
print(msg.id, msg.channel_id)

What you saw.

Instead this happens

None None
987906535692849182 862150987288412170
987906535692849182 862150987288412170

Sometimes it also occurs when ctx.edit or msg.edit, from reports of paginator ext users

What version of the library did you use?

unstable

Version specification

Happens in stable, in unstable, and in 4.3 beta 1

Code of Conduct

  • I agree to follow the contribution requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions