Closed ImperiumLacrima closed 3 years ago
Error is (node:97) UnhandledPromiseRejectionWarning: Error: Required argument "username" is missing
at Object.getIdFromUsername (/home/runner/TAS-Assistant/node_modules/noblox.js/lib/internal/wrap.js:69:19)
at Object.exports.run (/home/runner/TAS-Assistant/commands/role.js:4:26)
at Client.--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:97) UnhandledPromiseRejectionWarning: Error: Required argument "username" is missing
at Object.getIdFromUsername (/home/runner/TAS-Assistant/node_modules/noblox.js/lib/internal/wrap.js:69:19)
at Object.exports.run (/home/runner/TAS-Assistant/commands/role.js:4:26)
at Client.--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)
Hello?
Hi! Since this is not an error relating to qBot we aren't providing support for it (we will when we open our discord server again).
Whens that its been locked for a few weeks
K
Server now unlocked - there is a qbot plugin for that too which I made.
Where? @TypicallyShad
@TypicallyShad Where is the plug-in you made? Cannot find it.
There is no getroles plugin whatsoever.
Have you misread? There’s getinfo but not getroles.
[tag on this original message was a mistake, edited]
Server now unlocked - there is a qbot plugin for that too which I made.
Theres no get roles plugin..
Theres no get roles plugin..
Indeed.
No getroles in #plugins
If you need any more help, please ask in the support server.
Ok
const Discord = require('discord.js'); const roblox = require("noblox.js"); exports.run = async (client, message, args) => {
const foundId = roblox.getIdFromUsername(message.guild.member.displayName) const groupRank = roblox.getRankNameInGroup(7745739, foundId)
message.member.roles.add(message.guild.roles.cache.find(role => role.name === groupRank)); // Add the users role
const e = new Discord.MessageEmbed() .setColor('BLUE') .setTitle(
Prompt Concluded
) .addField("Added Roles",${groupRank}
) .setFooter("Action: Getroles") message.channel.send(e) }