const ESMCommand = require("../esm_command"); module.exports = class ESMCommand_SteamUID extends ESMCommand { constructor(bot) { super(bot); this.permissions = { requires_registration: true }; this.information = { category: "system", params: "", help: "Displays your steamUID if you are registered with ESM" }; this.configuration = { allowedInTextChannels: { modifiable: true, default: false } }; } async fromDiscord() { if (this.params.steamUID == null) { Logger.error(`Unable to find steam UID even though they were registered. ID: ${this.message.author.id}`); throw false; } this.ESMBot.send(this.message.channel, `${this.message.author.toString()}, your steamUID is: \`${this.params.steamUID}\``); } }