mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
fixed formatting
This commit is contained in:
parent
dfce480ec0
commit
4eeaca64d7
|
@ -257,18 +257,18 @@ client.on('guildCreate', async server => {
|
||||||
'A note to this server\'s administrators: When using the bridge, please make sure to also provide your members ' +
|
'A note to this server\'s administrators: When using the bridge, please make sure to also provide your members ' +
|
||||||
'with a link to AutoMod\'s privacy policy in an accessible place like your rules channel.';
|
'with a link to AutoMod\'s privacy policy in an accessible place like your rules channel.';
|
||||||
|
|
||||||
if (channel.permissionsFor(me).has('EMBED_LINKS')) {
|
if (channel.permissionsFor(me).has('EMBED_LINKS')) {
|
||||||
await channel.send({
|
await channel.send({
|
||||||
embeds: [
|
embeds: [
|
||||||
new MessageEmbed()
|
new MessageEmbed()
|
||||||
.setDescription(message)
|
.setDescription(message)
|
||||||
.setColor('#ff6e6d')
|
.setColor('#ff6e6d')
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
await channel.send(message);
|
await channel.send(message);
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue