mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 07:47:53 +00:00
fix edit message no-space flag
This commit is contained in:
parent
e9933c36ce
commit
6aed93ba21
3 changed files with 7 additions and 6 deletions
|
|
@ -91,7 +91,7 @@ public class ProxiedMessage
|
|||
}
|
||||
}
|
||||
|
||||
public async Task EditMessage(Context ctx, ulong? messageId, string newContent, bool useRegex, bool mutateSpace, bool append, bool prepend, bool clearEmbeds, bool clearAttachments)
|
||||
public async Task EditMessage(Context ctx, ulong? messageId, string newContent, bool useRegex, bool noSpace, bool append, bool prepend, bool clearEmbeds, bool clearAttachments)
|
||||
{
|
||||
var (msg, systemId) = await GetMessageToEdit(ctx, messageId, EditTimeout, false);
|
||||
|
||||
|
|
@ -102,6 +102,8 @@ public class ProxiedMessage
|
|||
if (originalMsg == null)
|
||||
throw new PKError("Could not edit message.");
|
||||
|
||||
var mutateSpace = noSpace ? "" : " ";
|
||||
|
||||
// Grab the original message content and new message content
|
||||
var originalContent = originalMsg.Content;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue