Skip to content

Commit

Permalink
refactor(cooldown): use id properties for channelId and guildId (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
favna authored Nov 16, 2023
1 parent 41bcc9b commit 633d325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/preconditions/Cooldown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ export class CorePrecondition extends AllFlowsPrecondition {
case BucketScope.Global:
return 'global';
case BucketScope.Channel:
return message.channel.id;
return message.channelId;
case BucketScope.Guild:
return message.guild?.id ?? message.channel.id;
return message.guildId ?? message.channelId;
default:
return message.author.id;
}
Expand Down

0 comments on commit 633d325

Please sign in to comment.