15 lines
410 B
JavaScript
15 lines
410 B
JavaScript
|
module.exports = class InteractionStorage {
|
||
|
constructor(idString, interaction) {
|
||
|
this.idString = idString;
|
||
|
|
||
|
// Store in the client
|
||
|
interaction.client.iStorage.set(idString, this);
|
||
|
|
||
|
// Delete this from the interactionStorage after 5 minutes
|
||
|
setTimeout(() => {
|
||
|
interaction.client.iStorage.delete(idString);
|
||
|
}, 300000);
|
||
|
|
||
|
return this;
|
||
|
}
|
||
|
}
|