Advertisement
ii_kinqm1ke

Userid

Jun 5th, 2020
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const testCommands = new discord.command.CommandGroup({
  2.   defaultPrefix: '/'
  3. });
  4.  
  5. testCommands.on(
  6.   'userid',
  7.   (ctx) => ({
  8.     user: ctx.user()
  9.   }),
  10.   async (message, { user }) => {
  11.     message.reply(`User id is: ${user.id}`);
  12.   }
  13. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement