diff --git a/PluralKit.Bot/Commands/MessageEdit.cs b/PluralKit.Bot/Commands/MessageEdit.cs index 782a6f6f..4154b1be 100644 --- a/PluralKit.Bot/Commands/MessageEdit.cs +++ b/PluralKit.Bot/Commands/MessageEdit.cs @@ -73,6 +73,9 @@ namespace PluralKit.Bot return msg.Message; } + if (ctx.Guild == null) + throw new PKError("You must use a message link to edit messages in DMs."); + var recent = await FindRecentMessage(ctx); if (recent == null) throw new PKError("Could not find a recent message to edit.");