Moving
This commit is contained in:
@@ -148,11 +148,11 @@ class General(commands.Cog):
|
||||
|
||||
embed.add_field(
|
||||
name='Prefix',
|
||||
value=
|
||||
f'The current prefix for this server is {self.bot.command_prefix}',
|
||||
value=f'The current prefix for this server is {self.bot.command_prefix}',
|
||||
inline=True)
|
||||
|
||||
await inter.response.send_message(embed=embed)
|
||||
logging.info(f'server prefix {self.bot.command_prefix}')
|
||||
await inter.response.send_message(embed=embed, ephemeral=True)
|
||||
|
||||
|
||||
def setup(bot): # an extension must have a setup function
|
||||
|
||||
@@ -5,7 +5,7 @@ from disnake.ext import commands
|
||||
|
||||
|
||||
class Bot_info(commands.Cog, name='Bot Info'):
|
||||
def __init__(self, bot):
|
||||
def __init__(self, bot: object) -> object:
|
||||
self.bot = bot # defining bot as global var in class
|
||||
|
||||
@commands.Cog.listener() # this is a decorator for events/listeners
|
||||
|
||||
Reference in New Issue
Block a user