diff options
| author | ame <[email protected]> | 2024-04-22 23:46:32 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-04-22 23:46:32 -0500 |
| commit | 2afa151657062ce8df30c6ff64878d798189d8ec (patch) | |
| tree | 0e4e33f6093c38f19256be3755fdb850a6c7fb33 /events/interaction.js | |
| parent | e88415c6d38526c511879ac506ca3a508605ac7c (diff) | |
long time no commit
Diffstat (limited to 'events/interaction.js')
| -rw-r--r-- | events/interaction.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/events/interaction.js b/events/interaction.js index a9a174f..e384dcc 100644 --- a/events/interaction.js +++ b/events/interaction.js @@ -13,6 +13,7 @@ module.exports = { await db._raw.sync() let config = JSON.parse(fs.readFileSync(config_loc)) client.on("interactionCreate", async(interaction) => { + if(interaction.guild==null)return if(!settings["allowed-servers"].includes(interaction.guild.id)) return console.log("denied interaction from (guild)"+interaction.guild.id) |
