GoldyBot.utility.nextcordpy.prefix
1import GoldyBot 2import nextcord 3 4def get_prefix(client, command:nextcord.Message): 5 # Get the guild object from the cache. 6 prefix = None 7 8 guild:GoldyBot.utility.guilds.guild.Guild = GoldyBot.cache.FindGuilds().find_object_by_id(command.guild.id) 9 10 if not guild == None: 11 prefix = guild.config.prefix 12 13 if prefix == None: 14 return "!" 15 else: 16 return prefix
def
get_prefix(client, command: nextcord.message.Message):
5def get_prefix(client, command:nextcord.Message): 6 # Get the guild object from the cache. 7 prefix = None 8 9 guild:GoldyBot.utility.guilds.guild.Guild = GoldyBot.cache.FindGuilds().find_object_by_id(command.guild.id) 10 11 if not guild == None: 12 prefix = guild.config.prefix 13 14 if prefix == None: 15 return "!" 16 else: 17 return prefix