Fixing formatting
This commit is contained in:
@@ -21,10 +21,7 @@ const channels = {
|
||||
|
||||
type Channel = keyof typeof channels
|
||||
|
||||
export default async function logToChannel(
|
||||
channel: Channel,
|
||||
message: MessageCreateOptions
|
||||
): Promise<void | null> {
|
||||
export default async function logToChannel(channel: Channel, message: MessageCreateOptions): Promise<void | null> {
|
||||
const guild = Illegitimate.client.guilds.cache.get(guildid) as Guild
|
||||
let logChannel: TextChannel
|
||||
|
||||
@@ -35,9 +32,7 @@ export default async function logToChannel(
|
||||
}
|
||||
|
||||
if (!logChannel) {
|
||||
console.log(
|
||||
`[ERROR] Could not find channel used for ${channel} logging.`
|
||||
)
|
||||
console.log(`[ERROR] Could not find channel used for ${channel} logging.`)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user