#help please
1 messages · Page 1 of 1 (latest)
help here
module.exports = {
data: new SlashCommandBuilder()
.setName('getscript')
.setDescription('Sends u a script'),
async execute(message, args) {
if (message.member.roles.cache.has('993934152095244418')){
message.author.send('hey')
} else {
message.channel.send('U do not have permission to use this command, Please buy and try again after')
}
}
}
that is how you send a dm, if it doesn't catch the promise rejection gracefully, presumably the user's settings prevent it from sending
make sure that piece of code executes in the first place
is message actually a Message? the data property is a slash command builder
message.user.send()
ill try that
if you're getting errors you should have provided them
you're not replying to the interaction