You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the above feature, the bot can get a discord.Message Type back with just the message link provided/
What is the feature request for?
discord.ext.commands
The Problem
Currently, you can only get a message's message link, but not reversing the function and get the message Type.
For example:
# To get a message link
message_link = message.jump_url # we have that attribute
# The function I am suggesting
message = await bot.fetch_message(message_link)
print(type(message))
>> discord.Message
print(type(message_link))
>> str object
So that we can reverse the entire function and get a message type return back.
The Ideal Solution
Use the re library and use some regex to seperate the slashs of the links which represents the guild ID, channel ID and message ID respectively/
The Current Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
@ramansrivastava This issue isn't actually an issue, it is a feature that the person didn't know about.
In future, rather than messaging asking if there is anything you can help with, have a look and see for yourself if there is any issue that you know you can fix.
Summary
With the above feature, the bot can get a discord.Message Type back with just the message link provided/
What is the feature request for?
discord.ext.commands
The Problem
Currently, you can only get a message's message link, but not reversing the function and get the message Type.
For example:
So that we can reverse the entire function and get a message type return back.
The Ideal Solution
Use the re library and use some regex to seperate the slashs of the links which represents the guild ID, channel ID and message ID respectively/
The Current Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: