Fixed HandleCommand Error message
if (!result.IsSuccess)
await msg.Channel.SendMessageAsync(result.ErrorReason);
}
msg -> context
This commit is contained in:
@@ -50,7 +50,7 @@ public class Program
|
|||||||
// rather an object stating if the command executed succesfully)
|
// rather an object stating if the command executed succesfully)
|
||||||
var result = await commands.ExecuteAsync(context, argPos, map);
|
var result = await commands.ExecuteAsync(context, argPos, map);
|
||||||
if (!result.IsSuccess)
|
if (!result.IsSuccess)
|
||||||
await msg.Channel.SendMessageAsync(result.ErrorReason);
|
await context.Channel.SendMessageAsync(result.ErrorReason);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user