We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc7abf5 commit 214fd15Copy full SHA for 214fd15
app/services/discord/index.ts
@@ -166,7 +166,7 @@ export class DiscordBot extends Service {
166
}
167
168
async setServerBanner(
169
- url = this.data?.lastDiscordBanner ?? null,
+ url?: string,
170
reason?: string
171
): Promise<boolean> {
172
if (!this.ready || !(await this.overLvl2())) return false;
@@ -183,7 +183,7 @@ export class DiscordBot extends Service {
183
this.data.lastDiscordBanner = banner ?? this.data.lastDiscordBanner;
184
await this.data.save();
185
186
- await guild.setBanner(url === "" ? null : url, reason);
+ await guild.setBanner(url ?? null, reason);
187
return true;
188
} catch {
189
return false;
0 commit comments