Skip to content

Commit

Permalink
fix(chatCommands): ignore webhooks in check, not action
Browse files Browse the repository at this point in the history
  • Loading branch information
mazziechai committed Dec 2, 2024
1 parent a975040 commit 502caab
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ class ChatCommandsExtension : Extension() {
aliasKey = Translations.Extensions.Viewing.Post.Chatcommand.aliases
description = Translations.Extensions.Viewing.Post.Chatcommand.description

check { anyGuild() }

action {
if (user == null) {
return@action
check {
anyGuild()
failIf {
event.member == null
}
}

action {
val note = noteCollection.getRandomNote(guild!!.id, arguments.noteName)

if (note == null) {
Expand Down

0 comments on commit 502caab

Please sign in to comment.