feat/#42_announce_manual_watchparty #50

Merged
magnetotail merged 4 commits from feat/#42_announce_manual_watchparty into master 2023-06-23 19:31:58 +02:00
Showing only changes of commit 45d87275bf - Show all commits

View File

@ -20,6 +20,10 @@ export async function execute(event: GuildScheduledEvent) {
if (event.description.includes("!wp")) {
logger.info("Got manual create event of watchparty event!", { guildId, requestId })
if(event.description.includes("!private")) {
logger.info("Event description contains \"!private\". Won't announce.", { guildId, requestId })
return
}
const channel: Maybe<TextChannel> = client.getAnnouncementChannelForGuild(guildId)
@ -32,7 +36,7 @@ export async function execute(event: GuildScheduledEvent) {
channel.send(message)
} else {
logger.debug("Got GuildScheduledEventCreate event but no !wp in description. Not creating manual wp announcement.")
logger.debug("Got GuildScheduledEventCreate event but no !wp in description. Not creating manual wp announcement.", { guildId, requestId })
}
} catch (error) {