Skip to content

Commit

Permalink
oh
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Feb 1, 2025
1 parent 1103643 commit 13fe236
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/util/branding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,16 @@ export interface BrandingConfig {
color: string
}

export let branding: Required<BrandingConfig> = {
export const branding: Required<BrandingConfig> = {
name: 'Developer Den',
iconUrl: 'https://developerden.org/logo.png',
iconUrl: 'https://static.developerden.org/logo.png',
...config.branding
}

export async function setupBranding(guild: Guild) {
guild = await guild.fetch()
logger.debug(`Setting up branding with guild ${guild.name} and ${guild.iconURL()}`)
branding = {
...{
name: guild.name ?? branding.name,
iconUrl: guild.iconURL() ?? branding.iconUrl
},
...config.branding
}
branding.name = guild.name
branding.iconUrl = guild.iconURL() ?? branding.iconUrl
logger.debug(`Branding config set to ${JSON.stringify(branding)}`)
}

0 comments on commit 13fe236

Please sign in to comment.