mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
fix
This commit is contained in:
2
index.js
2
index.js
@@ -1252,7 +1252,7 @@ app.post('/interactions', verifyKeyMiddleware(process.env.PUBLIC_KEY), async fun
|
||||
|
||||
for (const skin of topSkins) {
|
||||
const index = topSkins.indexOf(skin);
|
||||
const owner = await guild.members.fetch(skin.user_id);
|
||||
const owner = skin.user_id ? await guild.members.fetch(skin.user_id) : null;
|
||||
console.log('owner:')
|
||||
console.log(owner)
|
||||
fields.push({
|
||||
|
||||
Reference in New Issue
Block a user