mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 01:25:02 +00:00
Various bugfixes and change ct.anyId return to Snowflake
This commit is contained in:
parent
63d143a0ce
commit
58b56a467c
7 changed files with 19 additions and 13 deletions
|
@ -32,6 +32,10 @@ export const ButtonInteractionEvt = reactionRolesEvt({
|
|||
};
|
||||
|
||||
if (context.stateless) {
|
||||
if (context.roleOrMenu == null) {
|
||||
// Not reaction from this plugin
|
||||
return;
|
||||
}
|
||||
const timeSinceCreation = moment.utc().valueOf() - idToTimestamp(int.message.id)!;
|
||||
if (timeSinceCreation >= BUTTON_INVALIDATION_TIME) {
|
||||
sendEphemeralReply(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue