mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
fetch fix
This commit is contained in:
parent
cfe3bff742
commit
c98de0f554
1 changed files with 3 additions and 2 deletions
|
@ -21,8 +21,9 @@ export async function clearExpiredSlowmodes(pluginData: GuildPluginData<Slowmode
|
|||
} catch (e) {
|
||||
logger.error(e);
|
||||
|
||||
const realUser =
|
||||
pluginData.client.users!.fetch(user.user_id as Snowflake) || new UnknownUser({ id: user.user_id });
|
||||
const realUser = await pluginData.client
|
||||
.users!.fetch(user.user_id as Snowflake)
|
||||
.catch(() => new UnknownUser({ id: user.user_id }));
|
||||
|
||||
pluginData.state.logs.log(LogType.BOT_ALERT, {
|
||||
body: `Failed to clear slowmode permissions from {userMention(user)} in {channelMention(channel)}`,
|
||||
|
|
Loading…
Add table
Reference in a new issue