diff --git a/PluralKit.Bot/Commands/MessageEdit.cs b/PluralKit.Bot/Commands/MessageEdit.cs index c979bc59..3297eb85 100644 --- a/PluralKit.Bot/Commands/MessageEdit.cs +++ b/PluralKit.Bot/Commands/MessageEdit.cs @@ -67,6 +67,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.");