GuildPrefix Command Confused
GuildPrefix Command Confused Question: @bot.command() async def guildprefix(ctx, prefix): with open(‘prefixes.json’, ‘r’) as f: prefixes = json.load(f) prefixes[str(ctx.guild.id)] = prefix with open(‘prefixes.json’, ‘w’) as f: json.dump(prefixes, f, indent=4) await ctx.send(f’Prefix changed to: {prefix}’) name=f'{prefix}BotBot’ def get_prefix(bot, message): with open(‘prefixes.json’, ‘r’) as f: prefixes = json.load(f) prefixes[str(message.guild.id)] = ‘.’ return prefixes[str(message.guild.id)] It logs the prefix but …