mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 15:57:53 +00:00
feat: edit messages in threads
This commit is contained in:
parent
c472a7f6df
commit
db5fae0fb4
3 changed files with 17 additions and 8 deletions
|
|
@ -49,9 +49,6 @@ namespace PluralKit.Bot
|
|||
if (ctx.System.Id != msg.System.Id)
|
||||
throw new PKError("Can't edit a message sent by a different system.");
|
||||
|
||||
if (_cache.GetRootChannel(msg.Message.Channel).Id != msg.Message.Channel)
|
||||
throw new PKError("PluralKit cannot edit messages in threads.");
|
||||
|
||||
var newContent = ctx.RemainderOrNull().NormalizeLineEndSpacing();
|
||||
|
||||
var originalMsg = await _rest.GetMessage(msg.Message.Channel, msg.Message.Mid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue