nickname-request/nickname-request.py
async def nchannel(self, ctx, channel: TextChannel):
        """Sets a channel to receive nickname requests"""
        await self._db.find_one_and_update(
            {"_id": "channel"}, {"$set": {"snowflake": str(channel.id)}}, upsert=True
        )
        await ctx.send(embed=Embed(description=f"Successfully set the channel as <#{channel.id}>", colour=0X7289DA))
Sets a channel to receive nickname requests
Sets a channel to receive nickname requests
Sets a channel to receive nickname requests
async def nchannel(self, ctx, channel: TextChannel):
        await self._db.find_one_and_update(
            {"_id": "channel"}, {"$set": {"snowflake": str(channel.id)}}, upsert=True
        )
        await ctx.send(embed=Embed(description=f"Successfully set the channel as <#{channel.id}>", colour=0X7289DA))
async def nchannel ( self , ctx , channel : TextChannel ) : await self . _db . find_one_and_update ( { "_id" : "channel" } , { "$set" : { "snowflake" : str ( channel . id ) } } , upsert = True ) await ctx . send ( embed = Embed ( description = f"Successfully set the channel as <#{channel.id}>" , colour = 0X7289DA ) )
Sets a channel to receive nickname requests
Sets a channel to receive nickname requests
"""Sets a channel to receive nickname requests"""
self
ctx
channel
TextChannel