phenom4n4n / phen-cogs

My public cogs for Red, Discord bot.
https://phen-cogs.readthedocs.io/en/latest/
MIT License
120 stars 71 forks source link

[EmbedUtils] Edit command should have a channel option #114

Closed Nogooduser closed 2 years ago

Nogooduser commented 2 years ago

Currently the only way to edit an existing embed is to send a message in the same channel it was posted.

There should be a way to specify a channel so that the edit command can be sent from a private channel. Something like .embed edit json <channel> <data>
This would of course apply to all types of edits like fromfile, pastebin, etc.

The use case for this is when you have embeds in announcement-type channels where only mods can post and don't want to post a new command there that will needlessly alert regular users.

The regular embed command already supports a channel parameter, so it only feels logical that the edit command would too.

sravan1946 commented 2 years ago

You can edit the embeds in other channel by using a combination of the channel id and message id. Press and hold the shift button and click on the ID icon to get that. or you can just manully type it like CHANNELID-MESSAGEID with the - in between.

Nogooduser commented 2 years ago

Ah, the help command didn't specify it so I didn't know.

In the meantime during my testing I also discovered that using the direct url for the message also works.

Closing the issue. Thank you!