Advertisement
TheUnknownDiscord

How to get discord pylon to copy what you are saying (prefix .say)

Sep 7th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1.  
  2. const commands = new discord.command.CommandGroup({
  3. defaultPrefix: '.'
  4. });
  5.  
  6. commands.on(
  7. 'say',
  8. (args) => ({
  9. input: args.text(),
  10. delete: 'say'
  11. }),
  12. async (message, { input }) => {
  13. await message.delete();
  14. await message.reply({
  15. content: input,
  16. allowedMentions: {}
  17. });
  18. }
  19. );
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement