Skip to content

Instantly share code, notes, and snippets.

@ionutale
Created June 21, 2020 06:29
Show Gist options
  • Save ionutale/fdc410436e16348ad176ba1887b8b33d to your computer and use it in GitHub Desktop.
Save ionutale/fdc410436e16348ad176ba1887b8b33d to your computer and use it in GitHub Desktop.
get the clan info for clash of clan
async function showClanByTag(tag) {
try {
const ClanByTag = await client.clanByTag(tag)
console.log("this is the player info:", ClanByTag)
} catch (error) {
console.error(error)
}
}
showClanByTag('#UPC2UQ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment