Skip to content

Commit 633d325

Browse files
authoredNov 16, 2023
refactor(cooldown): use id properties for channelId and guildId (#688)
1 parent 41bcc9b commit 633d325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/preconditions/Cooldown.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ export class CorePrecondition extends AllFlowsPrecondition {
8181
case BucketScope.Global:
8282
return 'global';
8383
case BucketScope.Channel:
84-
return message.channel.id;
84+
return message.channelId;
8585
case BucketScope.Guild:
86-
return message.guild?.id ?? message.channel.id;
86+
return message.guildId ?? message.channelId;
8787
default:
8888
return message.author.id;
8989
}

0 commit comments

Comments
 (0)
Please sign in to comment.