Initial upload of discord-contrib-advanced repo
This commit is contained in:
16
discord/lib/interactionManager.js
Normal file
16
discord/lib/interactionManager.js
Normal file
@@ -0,0 +1,16 @@
|
||||
let interactions = {};
|
||||
|
||||
const registerInteraction = (interaction) => {
|
||||
interactions[interaction.id]=interaction;
|
||||
}
|
||||
|
||||
const getInteraction = (interactionId) => {
|
||||
let interaction = interactions[interactionId];
|
||||
//delete interactions[interactionId];
|
||||
return interaction;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
registerInteraction: registerInteraction,
|
||||
getInteraction: getInteraction
|
||||
}
|
||||
Reference in New Issue
Block a user