1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-06-04 08:53:49 -04:00

deno fmt + change sendMessage to bot.helpers.sendMessage

This commit is contained in:
Ean Milligan (Bastion)
2023-04-06 23:40:57 -04:00
parent e609654761
commit 988f826545
11 changed files with 38 additions and 52 deletions

View File

@@ -1,20 +1,11 @@
import config from '../../config.ts';
import {
// Discordeno deps
Bot,
Guild,
// Log4Deno deps
log,
LT,
// Discordeno deps
sendMessage,
} from '../../deps.ts';
import { Bot, Guild, log, LT } from '../../deps.ts';
import { infoColor1 } from '../commandUtils.ts';
import utils from '../utils.ts';
export const guildCreate = (bot: Bot, guild: Guild) => {
log(LT.LOG, `Handling joining guild ${utils.jsonStringifyBig(guild)}`);
sendMessage(bot, config.logChannel, {
bot.helpers.sendMessage(config.logChannel, {
embeds: [{
title: 'Guild Joined!',
color: infoColor1,