Allow !loglink in suspended threads
parent
d0b9ef851f
commit
bee147c19d
|
@ -47,7 +47,11 @@ module.exports = bot => {
|
|||
});
|
||||
|
||||
addInboxServerCommand('loglink', async (msg, args, thread) => {
|
||||
if (! thread) return;
|
||||
if (! thread) {
|
||||
thread = await threads.findSuspendedThreadByChannelId(msg.channel.id);
|
||||
if (! thread) return;
|
||||
}
|
||||
|
||||
const logUrl = await thread.getLogUrl();
|
||||
thread.postSystemMessage(`Log URL: ${logUrl}`);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue