You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# with open("db/profiles.json", 'w+') as f: json.dump(profile_metadata, f, indent=4) TODO: Uncomment this line once full profile metadata support is ready
30
+
withopen("db/profiles.json", 'w+') asf: json.dump(profile_metadata, f, indent=4) # TODO: Uncomment this line once full profile metadata support is ready
# customization = discord.commands.SlashCommandGroup("customize", "Commands used to customize the user's /profile command.") Disable because command doesn't sync with this
135
+
136
+
@client.slash_command(
137
+
name="profile_banner",
138
+
description="Set a banner to display on your /profile command! (url only)"
139
+
)
140
+
@option(name="image_url", description="The url of your new profile banner (leave blank to disable)", type=str, default=None)
ifimage_urlisNone: localembed=discord.Embed(description=":white_check_mark: Your custom profile banner has been successfully removed.", color=discord.Color.green())
147
+
else: localembed=discord.Embed(description=":white_check_mark: Your custom profile banner has been successfully set! Check it out using `/profile`.", color=discord.Color.green())
0 commit comments