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
let partial_guild = guild_id.to_partial_guild(&ctx.http).await?;
282
261
let guild_owner = partial_guild.owner_id;
283
-
info!(
262
+
warn!(
284
263
"Letting owner={guild_owner} of guild={guild_id} know about the missing banner feature"
285
264
);
286
265
287
266
dm_user(&ctx, guild_owner,"Server has lost the required boost level. Stopping schedule. You can restart the bot after gaining the required boost level.").await?;
"guild_id={guild_id} with channel={channel_id} was trying to set an animated banner but does not have the feature. url={url}"
292
272
);
293
273
let partial_guild = guild_id.to_partial_guild(&ctx.http).await?;
294
274
let guild_owner = partial_guild.owner_id;
295
-
info!(
275
+
warn!(
296
276
"Letting owner={guild_owner} of guild={guild_id} know about the missing animated banner feature"
297
277
);
298
278
299
279
dm_user(&ctx, guild_owner,&format!("Tried to set an animated banner but the server '{}' does not have the required boost level for animated banners", partial_guild.name)).await?;
280
+
returnOk(ScheduleAction::RetryNewImage);
300
281
}
301
282
SetBannerError::ImageIsEmpty(url, ..) => {
302
283
warn!(
303
284
"guild_id={guild_id} with channel={channel_id} has selected an image with 0 bytes. url={url}"
dm_user(&ctx, guild_owner,&format!("The channel you've set contains an image that is too big for discord. Maximum size is 10mb. The image is: {url}")).await?;
300
+
returnOk(ScheduleAction::RetryNewImage);
318
301
}
319
302
SetBannerError::ImageUnkownSize(url, ..) => {
320
303
warn!(
321
304
"guild_id={guild_id} with channel={channel_id} has selected an image with unknown size. url={url}"
322
305
);
306
+
returnOk(ScheduleAction::RetryNewImage);
323
307
}
324
308
SetBannerError::Base64Encoding(url, ..) => {
325
309
warn!(
326
310
"guild_id={guild_id} with channel={channel_id} has selected an image wich could be encoded into base 64. url={url}"
0 commit comments