Advertisement
karolusrexx

Untitled

Apr 14th, 2023
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.49 KB | Source Code | 0 0
  1. const { SlashCommandBuilder } = require("discord.js");
  2.  
  3. /**
  4.  * @type {import('../../../typings').SlashInteractionCommand}
  5.  */
  6.  
  7. module.exports = {
  8.     data: new SlashCommandBuilder()
  9.         .setName("dm")
  10.         .setDescription('Sends DM to specified user'),
  11.     async execute(interaction) {
  12.         await interaction.reply("A Direct Message has been sent to the user")
  13.         var member = interaction.member;
  14.         member.send("Hello, this was sent by Astra Polaris")
  15.     },
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement