Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message not returned from Http::create_forum_post_with_attachments #3082

Open
TheKodeToad opened this issue Dec 10, 2024 · 1 comment
Open

Comments

@TheKodeToad
Copy link

TheKodeToad commented Dec 10, 2024

The function returns the created channel, but not the message. Same applies to helper functions like ChannelId::create_forum_post etc.. According to the documentation this is returned nested in the channel object: https://discord.com/developers/docs/resources/channel#start-thread-in-forum-or-media-channel.

Rough suggestion on how to represent this (means breaking change I suppose)

struct GoodStructName {
    channel: GuildChannel,
    message: Message,
}

Just to give an example of why this might be useful:
My usecase is a modmail bot - when a user sends a direct message to the bot, it reposts it in a forum channel. I am trying to make this message update to reflect the source message upon edits by storing a relationship between the source message <-> reposted message - and to do this I need the message ID.

@TheKodeToad
Copy link
Author

I found out that the thread and starter message ID are actually the same. So while this could be done, it's not that useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant