Skip to content

Commit c428907

Browse files
authored
Merge pull request #154 from Michael-J-Scofield/fix-idnotfound-error
Fix the error: 'TypeError: Cannot read properties of undefined (reading 'id')'
2 parents 47863e3 + 2101f36 commit c428907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ class AntiSpamClient extends EventEmitter {
462462
* });
463463
*/
464464
async message (message) {
465-
const options = this.getOptions()
465+
const options = this.getOptions(message.guild)
466466

467467
if (
468468
!message.guild ||

0 commit comments

Comments
 (0)