Better debug message
This commit is contained in:
parent
20d7d77178
commit
6eff4dd80f
1 changed files with 3 additions and 1 deletions
|
@ -139,7 +139,9 @@ export class ReactionRolesPlugin extends ZeppelinPlugin<TConfigSchema> {
|
||||||
targetMessage = await channel.getMessage(messageId);
|
targetMessage = await channel.getMessage(messageId);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof DiscordRESTError) {
|
if (e instanceof DiscordRESTError) {
|
||||||
logger.warn(`Reaction roles for unknown message ${messageId} in guild ${this.guild.name} (${this.guildId})`);
|
logger.warn(
|
||||||
|
`Reaction roles for unknown message ${channelId}/${messageId} in guild ${this.guild.name} (${this.guildId})`,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
Loading…
Add table
Reference in a new issue