Fixed an issue with expression settings toggle, closes #353

This commit is contained in:
Kwoth
2022-04-13 18:14:58 +02:00
parent e4b98a0c07
commit 6159d84988
2 changed files with 5 additions and 4 deletions

View File

@@ -241,7 +241,7 @@ public partial class NadekoExpressions : NadekoModule<NadekoExpressionsService>
return;
}
var (success, newVal) = await _service.ToggleExprOptionAsync(id, option);
var (success, newVal) = await _service.ToggleExprOptionAsync(ctx.Guild?.Id, id, option);
if (!success)
{
await ReplyErrorLocalizedAsync(strs.expr_no_found_id);