You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module.exports = async function (scratchUsername) {
return new Promise(async (resolve, reject) => {
let linkedUsers = await users.find({ scratch: scratchUsername })
if (linkedUsers.length == 0) return resolve({content: "I could not find any Discord accounts linked to that Scratch user. This command is case sensitive."})
let discords = linkedUsers.map(i => `<@${i.discord}>`).join('\n')
resolve({
embeds: [{
"title": `Discord accounts linked for ${scratchUsername}`,
"description": `**List of discord accounts:**\n${discords}`,