Skip to content

Commit 214fd15

Browse files
authored
Update index.ts
1 parent bc7abf5 commit 214fd15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/services/discord/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class DiscordBot extends Service {
166166
}
167167

168168
async setServerBanner(
169-
url = this.data?.lastDiscordBanner ?? null,
169+
url?: string,
170170
reason?: string
171171
): Promise<boolean> {
172172
if (!this.ready || !(await this.overLvl2())) return false;
@@ -183,7 +183,7 @@ export class DiscordBot extends Service {
183183
this.data.lastDiscordBanner = banner ?? this.data.lastDiscordBanner;
184184
await this.data.save();
185185

186-
await guild.setBanner(url === "" ? null : url, reason);
186+
await guild.setBanner(url ?? null, reason);
187187
return true;
188188
} catch {
189189
return false;

0 commit comments

Comments
 (0)