Compare commits

...

2 Commits

Author SHA1 Message Date
085b51a95d fix 2022-03-31 17:57:06 -07:00
fc41f8ad2f a2 2022-03-31 17:55:55 -07:00
2 changed files with 3 additions and 3 deletions

View File

@ -8,5 +8,5 @@ var client = module.exports = new Discord.Client({
client.login(config.token).then(async () => { client.login(config.token).then(async () => {
console.log("ready"); console.log("ready");
(await client.channels.fetch(config.bot_channel))?.send('a'); (await client.channels.fetch(config.bot_channel))?.send('a2');
}); });

View File

@ -44,8 +44,8 @@ module.exports.interval = setInterval(updateUserStatuses, 1000*60*5);
client.on("interactionCreate", async interaction => { client.on("interactionCreate", async i => {
if (interaction.commandName == "addvru") { if (i.commandName == "addvru") {
try { try {
let u = i.options.getString("user"); let u = i.options.getString("user");
let user = (await usersApi[u.startsWith("usr_") ? 'getUser' : 'getUserByName'](u)).data; let user = (await usersApi[u.startsWith("usr_") ? 'getUser' : 'getUserByName'](u)).data;