Open FemLolStudio opened 10 months ago
iirc FollowupAsync
returns a RestFollowupMessage
. So try using this type instead.
Hmm, okey. Yeah now its working. But it's actually returning an IUserMessage
instead of RestFollowupMessage
so thats confusing.
Now in this form it's working:
[SlashCommand("ephemeral-test", "Testing bug")]
public async Task Test(bool ephemeral)
{
await DeferAsync(ephemeral: ephemeral);
RestFollowupMessage msg = (RestFollowupMessage)await FollowupAsync("Test", ephemeral: ephemeral);
await msg.ModifyAsync(x => x.Content = "Test success");
}
But it's actually returning an
IUserMessage
instead ofRestFollowupMessage
so thats confusing.
Hmm yeah, that's because of an abstraction layer. Actual method impls in Rest/SocketInteraction
return a RestFollowupMessage
. I'll see if we can change this.
How could you first not respond with a file and then afterwards modifying it with a uploading a file to the message?
How could you first not respond with a file and then afterwards modifying it with a uploading a file to the message?
How could you not ask for support in the discord
Okay sorry
Check The Docs
Verify Issue Source
Check your intents
Description
I have some command in my bot where I used this method to inform the user about the current stage from the process, but today I noticed somewhy now it's not working.
Maybe something changed about the Discord API, because I get the same problem on the previous Discord.NET versions.
The problem exists in 3.9.0 too, that was the lowest what I was able to go with my current bot codes, so maybe it's something about the Discord API.
Version
3.13.0
Logs
Sample
Result for true and false:
Packages
Environment