Search
 
SCRIPT & CODE EXAMPLE
 

ASSEMBLY

make the bot delete its own message

await ctx.send('You don't have the permission to use this command', delete_after=5) 
Comment

discord bot remove message

import discord.ext

bot = commands.Bot(";")

@bot.event 
async def on_message(message):
    if message.content.upper().startswith(";SAY"):
        args = message.content.split(" ")
        await bot.send_message(message.channel, "%s" % (" ".join(args[1:])))
        await bot.delete_message(message)
Comment

discord delete message

"create a variable called id"
var id
"then inside your client message statement change id ->  id = message.id"
client.on('message', message => {
  id = message.id
});
"inside your command type  message.fetch(id).then(msg => msg.delete());"
  if (message.content === !test)
      message.fetch(id).then(msg => msg.delete());      
}});
Comment

PREVIOUS NEXT
Code Example
Assembly :: vba check if shape name exists 
Assembly :: multiply two numbers assembly lmc 
Assembly :: glsl uniform struct 
Assembly :: undefined reference to `cv::inRange 
Assembly :: sparsefile 
Assembly :: x86 assembly not instruction 
Assembly :: google appscripts cell get background color 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: how to install react router dom version 5 
Javascript :: login to discord with token 
Javascript :: ts ignore in jsx 
Javascript :: shopify comment code 
Javascript :: jquery display none 
Javascript :: jquery accept only excel file 
Javascript :: get parameter from the actual url javascript 
Javascript :: jquery slim min js url 
Javascript :: react native textInput numbers only 
Javascript :: jquery prevent form submit 
Javascript :: javascript get url 
Javascript :: js split array in half 
Javascript :: js loop through array backwards 
Javascript :: remove commas from string javascript 
Javascript :: javascript capitalize string 
Javascript :: dino game 
Javascript :: bootstrap modal title center 
Javascript :: jquery submit form ajax 
Javascript :: regex password uppercase lowercase number special character 
Javascript :: node-fetch post request example 
Javascript :: javascript replace space by underscore 
Javascript :: how to hide header in react navigation 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =