Miscellaneous
| Usage | Script |
|---|---|
| Unban User requires user's ID |
msg.guild.unban(tempVars("user_id")).then(user => console.log("Unbanned ${user.username} from ${msg.guild.name}")).catch(console.error); |
| Find Emoji | client.emojis.find("name", "NameOfTheEmoji") |
| skip ahead some number there are kinks to this still |
this.callNextAction(#) |
| Show current date/time in timezone | new Date().toLocaleString("en-US", {timeZone: "America/New_York"}) |
| Create server invite | msg.channel.createInvite({temporary: true}," Showing the usage").then(invite=> msg.channel.send(invite.url)) |
| Add role to cmd author | member.addRole(tempVars("newrolename")); |
| Stop the bot | process.exit(0); |
| Change nickname (command author) | msg.member.setNickname(tempVars("new_nick")).then(console.log).catch(console.error); |