Add admin command to send a message
This commit is contained in:
		@@ -1,6 +1,5 @@
 | 
			
		||||
import disnake
 | 
			
		||||
from disnake import CategoryChannel, PermissionOverwrite, TextChannel
 | 
			
		||||
from disnake.errors import InvalidData
 | 
			
		||||
from disnake.ext import commands
 | 
			
		||||
import logging
 | 
			
		||||
 | 
			
		||||
@@ -152,6 +151,13 @@ async def on_ready():
 | 
			
		||||
    config.save()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@bot.command()
 | 
			
		||||
@commands.has_permissions(administrator=True)
 | 
			
		||||
async def send(ctx: commands.Context, *, message: str):
 | 
			
		||||
    await ctx.message.delete()
 | 
			
		||||
    await ctx.send(message)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@bot.command()
 | 
			
		||||
async def vote(ctx: commands.Context):
 | 
			
		||||
    view = Confirm()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user