Skip to content

Commit 1a5e14e

Browse files
committed
Update Discord.php
1 parent ee037a4 commit 1a5e14e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Discord/Discord.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ public function listenCommand($names, ?callable $callback = null, ?callable $aut
19401940
}
19411941

19421942
// registering base command
1943-
if (count($names) == 1) {
1943+
if (count($names) === 1) {
19441944
$name = array_shift($names);
19451945
if (isset($this->application_commands[$name])) {
19461946
throw new \LogicException("The command `{$name}` already exists.");

0 commit comments

Comments
 (0)