Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete all messages discord.py

import discord
from discord.ext import commands

client = commands.Bot(command_prefix = ".")

@client.command()
async def clear(ctx):
  await ctx.channel.purge()#deletes all messages
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #messages
ADD COMMENT
Topic
Name
4+2 =