Update applyRoleButtons.ts
This commit is contained in:
parent
961a8c7fff
commit
f5125cb3c3
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export async function applyRoleButtons(
|
|||
}
|
||||
|
||||
const channel = await pluginData.guild.channels.fetch(configItem.message.channel_id).catch(() => null);
|
||||
if (!channel || !channel.isText()) {
|
||||
if (!channel || !channel?.isText()) {
|
||||
pluginData.getPlugin(LogsPlugin).logBotAlert({
|
||||
body: `Text channel not found for role_buttons/${configItem.name}`,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue