Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin updates #14

Open
wants to merge 230 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
2246b1b
migrate to v13 embed builder
takefy-dev Aug 1, 2021
111840f
Merge remote-tracking branch 'origin/translations' into translations
takefy-dev Aug 1, 2021
310f805
New translations fr.js (Romanian)
takefy-dev Aug 1, 2021
75701f3
New translations fr.js (Dutch)
takefy-dev Aug 1, 2021
0243424
New translations fr.js (Vietnamese)
takefy-dev Aug 1, 2021
c7655c5
New translations fr.js (English)
takefy-dev Aug 1, 2021
b1274d2
New translations fr.js (Chinese Traditional)
takefy-dev Aug 1, 2021
1f6c8d5
New translations fr.js (Ukrainian)
takefy-dev Aug 1, 2021
76ed45d
New translations fr.js (Turkish)
takefy-dev Aug 1, 2021
be3cc3c
New translations fr.js (Swedish)
takefy-dev Aug 1, 2021
1f102ba
New translations fr.js (Serbian (Cyrillic))
takefy-dev Aug 1, 2021
f568cb4
New translations fr.js (Russian)
takefy-dev Aug 1, 2021
69c3e6c
New translations fr.js (Portuguese)
takefy-dev Aug 1, 2021
06cceee
New translations fr.js (Polish)
takefy-dev Aug 1, 2021
38517cd
New translations fr.js (Norwegian)
takefy-dev Aug 1, 2021
4dca704
New translations fr.js (Korean)
takefy-dev Aug 1, 2021
9db6097
New translations fr.js (Japanese)
takefy-dev Aug 1, 2021
0c40504
New translations fr.js (Italian)
takefy-dev Aug 1, 2021
d367898
New translations fr.js (Hungarian)
takefy-dev Aug 1, 2021
dfe8564
New translations fr.js (Hebrew)
takefy-dev Aug 1, 2021
a5dfb5c
New translations fr.js (Finnish)
takefy-dev Aug 1, 2021
6f53892
New translations fr.js (Greek)
takefy-dev Aug 1, 2021
ae16bd4
New translations fr.js (German)
takefy-dev Aug 1, 2021
0b44fbe
New translations fr.js (Danish)
takefy-dev Aug 1, 2021
7368c9d
New translations fr.js (Czech)
takefy-dev Aug 1, 2021
88431e8
New translations fr.js (Catalan)
takefy-dev Aug 1, 2021
d76b8f7
New translations fr.js (Arabic)
takefy-dev Aug 1, 2021
ba7c673
New translations fr.js (Afrikaans)
takefy-dev Aug 1, 2021
62eb41b
Merge branch 'translations' of https://github.com/takefy-dev/oneforal…
takefy-dev Aug 1, 2021
5c8b10e
New translations fr.js (French)
takefy-dev Aug 1, 2021
cf052ba
New translations fr.js (Romanian)
takefy-dev Aug 1, 2021
c32fde6
New translations fr.js (Dutch)
takefy-dev Aug 1, 2021
abd1be0
New translations fr.js (Vietnamese)
takefy-dev Aug 1, 2021
dd825cd
New translations fr.js (English)
takefy-dev Aug 1, 2021
e0eb24c
New translations fr.js (Chinese Traditional)
takefy-dev Aug 1, 2021
504edef
New translations fr.js (Ukrainian)
takefy-dev Aug 1, 2021
e751993
New translations fr.js (Turkish)
takefy-dev Aug 1, 2021
3fd04b8
New translations fr.js (Swedish)
takefy-dev Aug 1, 2021
e5a1e4e
New translations fr.js (Serbian (Cyrillic))
takefy-dev Aug 1, 2021
4ba8536
New translations fr.js (Russian)
takefy-dev Aug 1, 2021
2cfc964
New translations fr.js (Portuguese)
takefy-dev Aug 1, 2021
ec1695e
New translations fr.js (Polish)
takefy-dev Aug 1, 2021
2c78ad7
New translations fr.js (Norwegian)
takefy-dev Aug 1, 2021
7a2521f
New translations fr.js (Korean)
takefy-dev Aug 1, 2021
61d9082
New translations fr.js (French)
takefy-dev Aug 1, 2021
4e1a0e9
New translations fr.js (Japanese)
takefy-dev Aug 1, 2021
3739cac
New translations fr.js (Italian)
takefy-dev Aug 1, 2021
36c776a
New translations fr.js (Hungarian)
takefy-dev Aug 1, 2021
fd3d8f1
New translations fr.js (Hebrew)
takefy-dev Aug 1, 2021
1c171a2
New translations fr.js (Finnish)
takefy-dev Aug 1, 2021
6071db8
New translations fr.js (Greek)
takefy-dev Aug 1, 2021
eea4a32
New translations fr.js (German)
takefy-dev Aug 1, 2021
e2bec3e
New translations fr.js (Danish)
takefy-dev Aug 1, 2021
8e51220
New translations fr.js (Czech)
takefy-dev Aug 1, 2021
14aac62
New translations fr.js (Catalan)
takefy-dev Aug 1, 2021
acb9b90
New translations fr.js (Arabic)
takefy-dev Aug 1, 2021
1157e0f
New translations fr.js (Afrikaans)
takefy-dev Aug 1, 2021
acbd064
New translations fr.js (Spanish)
takefy-dev Aug 1, 2021
2257b7e
New translations fr.js (Romanian)
takefy-dev Aug 1, 2021
057cd6c
New translations fr.js (Dutch)
takefy-dev Aug 1, 2021
5938350
New translations fr.js (Vietnamese)
takefy-dev Aug 1, 2021
d271dbc
New translations fr.js (English)
takefy-dev Aug 1, 2021
3b21a34
New translations fr.js (Chinese Traditional)
takefy-dev Aug 1, 2021
60da678
New translations fr.js (Ukrainian)
takefy-dev Aug 1, 2021
3bed26f
New translations fr.js (Turkish)
takefy-dev Aug 1, 2021
224dad1
New translations fr.js (Swedish)
takefy-dev Aug 1, 2021
f4ebf38
New translations fr.js (Serbian (Cyrillic))
takefy-dev Aug 1, 2021
298d1e6
New translations fr.js (Russian)
takefy-dev Aug 1, 2021
bc8d53c
New translations fr.js (Portuguese)
takefy-dev Aug 1, 2021
614573e
New translations fr.js (Polish)
takefy-dev Aug 1, 2021
0256160
New translations fr.js (Norwegian)
takefy-dev Aug 1, 2021
2e1624d
New translations fr.js (Korean)
takefy-dev Aug 1, 2021
ebc52c4
New translations fr.js (French)
takefy-dev Aug 1, 2021
b86d13e
New translations fr.js (Japanese)
takefy-dev Aug 1, 2021
18c921b
New translations fr.js (Italian)
takefy-dev Aug 1, 2021
14f278f
New translations fr.js (Hungarian)
takefy-dev Aug 1, 2021
93323ad
New translations fr.js (Hebrew)
takefy-dev Aug 1, 2021
8dd0efa
New translations fr.js (Finnish)
takefy-dev Aug 1, 2021
dc21c11
New translations fr.js (Greek)
takefy-dev Aug 1, 2021
b062cd4
New translations fr.js (German)
takefy-dev Aug 1, 2021
be93a6c
New translations fr.js (Danish)
takefy-dev Aug 1, 2021
0641ec2
New translations fr.js (Czech)
takefy-dev Aug 1, 2021
41150b9
New translations fr.js (Catalan)
takefy-dev Aug 1, 2021
3178b41
New translations fr.js (Arabic)
takefy-dev Aug 1, 2021
25437fe
New translations fr.js (Afrikaans)
takefy-dev Aug 1, 2021
57aa5f2
New translations fr.js (Spanish)
takefy-dev Aug 1, 2021
cb0901d
New translations fr.js (Romanian)
takefy-dev Aug 1, 2021
f0380e0
New translations fr.js (Dutch)
takefy-dev Aug 1, 2021
e300b79
New translations fr.js (Vietnamese)
takefy-dev Aug 1, 2021
9d83c36
New translations fr.js (English)
takefy-dev Aug 1, 2021
14f924c
New translations fr.js (Chinese Traditional)
takefy-dev Aug 1, 2021
fa6dee3
New translations fr.js (Ukrainian)
takefy-dev Aug 1, 2021
0f85561
New translations fr.js (Turkish)
takefy-dev Aug 1, 2021
b3bece4
New translations fr.js (Swedish)
takefy-dev Aug 1, 2021
c87db89
New translations fr.js (Serbian (Cyrillic))
takefy-dev Aug 1, 2021
5ec2c2a
New translations fr.js (Russian)
takefy-dev Aug 1, 2021
50b34c2
New translations fr.js (Portuguese)
takefy-dev Aug 1, 2021
f6e909c
New translations fr.js (Polish)
takefy-dev Aug 1, 2021
707b532
New translations fr.js (Norwegian)
takefy-dev Aug 1, 2021
4a46a3f
New translations fr.js (Korean)
takefy-dev Aug 1, 2021
ab41879
New translations fr.js (French)
takefy-dev Aug 1, 2021
4f54e54
New translations fr.js (Japanese)
takefy-dev Aug 1, 2021
bc154ed
New translations fr.js (Italian)
takefy-dev Aug 1, 2021
b1f38fe
New translations fr.js (Hungarian)
takefy-dev Aug 1, 2021
e9c6f6b
New translations fr.js (Hebrew)
takefy-dev Aug 1, 2021
3bf61ec
New translations fr.js (Finnish)
takefy-dev Aug 1, 2021
df54c51
New translations fr.js (Greek)
takefy-dev Aug 1, 2021
7ae1050
New translations fr.js (German)
takefy-dev Aug 1, 2021
c30ede0
New translations fr.js (Danish)
takefy-dev Aug 1, 2021
32ed581
New translations fr.js (Czech)
takefy-dev Aug 1, 2021
bec548f
New translations fr.js (Catalan)
takefy-dev Aug 1, 2021
43c50ac
New translations fr.js (Arabic)
takefy-dev Aug 1, 2021
47fa5b2
New translations fr.js (Afrikaans)
takefy-dev Aug 1, 2021
05da255
New translations fr.js (Spanish)
takefy-dev Aug 1, 2021
936b7f0
New translations fr.js (Romanian)
takefy-dev Aug 2, 2021
490efb8
New translations fr.js (French)
takefy-dev Aug 2, 2021
0ca3637
New translations fr.js (Spanish)
takefy-dev Aug 2, 2021
837eb56
New translations fr.js (Vietnamese)
takefy-dev Aug 2, 2021
2baf1dd
New translations fr.js (English)
takefy-dev Aug 2, 2021
b64edd1
New translations fr.js (Chinese Traditional)
takefy-dev Aug 2, 2021
c62deba
New translations fr.js (Ukrainian)
takefy-dev Aug 2, 2021
1dac578
New translations fr.js (Turkish)
takefy-dev Aug 2, 2021
8852cce
New translations fr.js (Swedish)
takefy-dev Aug 2, 2021
f628d49
New translations fr.js (Serbian (Cyrillic))
takefy-dev Aug 2, 2021
a0bc354
New translations fr.js (Russian)
takefy-dev Aug 2, 2021
1749bc2
New translations fr.js (Portuguese)
takefy-dev Aug 2, 2021
46bec13
New translations fr.js (Polish)
takefy-dev Aug 2, 2021
1f77029
New translations fr.js (Norwegian)
takefy-dev Aug 2, 2021
44e41d6
New translations fr.js (Korean)
takefy-dev Aug 2, 2021
c52ed10
New translations fr.js (Dutch)
takefy-dev Aug 2, 2021
a8acbcb
New translations fr.js (Japanese)
takefy-dev Aug 2, 2021
ef60855
New translations fr.js (Italian)
takefy-dev Aug 2, 2021
75abd85
New translations fr.js (Hungarian)
takefy-dev Aug 2, 2021
8b37238
New translations fr.js (Hebrew)
takefy-dev Aug 2, 2021
479f63f
New translations fr.js (Finnish)
takefy-dev Aug 2, 2021
54fade8
New translations fr.js (Greek)
takefy-dev Aug 2, 2021
58de88a
New translations fr.js (German)
takefy-dev Aug 2, 2021
0c02910
New translations fr.js (Danish)
takefy-dev Aug 2, 2021
5df4f8c
New translations fr.js (Czech)
takefy-dev Aug 2, 2021
8df0f5d
New translations fr.js (Catalan)
takefy-dev Aug 2, 2021
f4ddc4e
New translations fr.js (Arabic)
takefy-dev Aug 2, 2021
6b58252
New translations fr.js (Afrikaans)
takefy-dev Aug 2, 2021
8df1d7f
New translations fr.js (Romanian)
takefy-dev Aug 2, 2021
d47965b
New translations fr.js (Dutch)
takefy-dev Aug 2, 2021
b6323a7
New translations fr.js (Vietnamese)
takefy-dev Aug 2, 2021
93d9a97
New translations fr.js (English)
takefy-dev Aug 2, 2021
60c8a69
New translations fr.js (Chinese Traditional)
takefy-dev Aug 2, 2021
82037fb
New translations fr.js (Ukrainian)
takefy-dev Aug 2, 2021
09b8b5a
New translations fr.js (Turkish)
takefy-dev Aug 2, 2021
ed54f4e
New translations fr.js (Swedish)
takefy-dev Aug 2, 2021
04114e9
New translations fr.js (Serbian (Cyrillic))
takefy-dev Aug 2, 2021
f77ddaa
New translations fr.js (Russian)
takefy-dev Aug 2, 2021
b36c5a7
New translations fr.js (Portuguese)
takefy-dev Aug 2, 2021
0543789
New translations fr.js (Polish)
takefy-dev Aug 2, 2021
3667819
New translations fr.js (Norwegian)
takefy-dev Aug 2, 2021
c6b5174
New translations fr.js (Korean)
takefy-dev Aug 2, 2021
2a0150a
New translations fr.js (French)
takefy-dev Aug 2, 2021
0824153
New translations fr.js (Japanese)
takefy-dev Aug 2, 2021
43c126f
New translations fr.js (Italian)
takefy-dev Aug 2, 2021
5daf6ac
New translations fr.js (Hungarian)
takefy-dev Aug 2, 2021
6c07a88
New translations fr.js (Hebrew)
takefy-dev Aug 2, 2021
5e6ba54
New translations fr.js (Finnish)
takefy-dev Aug 2, 2021
4c5f99f
New translations fr.js (Greek)
takefy-dev Aug 2, 2021
28edd7b
New translations fr.js (German)
takefy-dev Aug 2, 2021
740e16f
New translations fr.js (Danish)
takefy-dev Aug 2, 2021
a1a44e2
New translations fr.js (Czech)
takefy-dev Aug 2, 2021
2c82df1
New translations fr.js (Catalan)
takefy-dev Aug 2, 2021
3eb69dd
New translations fr.js (Arabic)
takefy-dev Aug 2, 2021
1bd4a72
New translations fr.js (Afrikaans)
takefy-dev Aug 2, 2021
5d0992a
New translations fr.js (Spanish)
takefy-dev Aug 2, 2021
9c26c19
New translations fr.js (Romanian)
takefy-dev Aug 2, 2021
fc2ba09
New translations fr.js (Dutch)
takefy-dev Aug 2, 2021
fe914be
New translations fr.js (Vietnamese)
takefy-dev Aug 2, 2021
df79d27
New translations fr.js (English)
takefy-dev Aug 2, 2021
45293a5
New translations fr.js (Chinese Traditional)
takefy-dev Aug 2, 2021
6790ea3
New translations fr.js (Ukrainian)
takefy-dev Aug 2, 2021
6c3aa94
New translations fr.js (Turkish)
takefy-dev Aug 2, 2021
5a4ca5a
New translations fr.js (Swedish)
takefy-dev Aug 2, 2021
bce4ad8
New translations fr.js (Serbian (Cyrillic))
takefy-dev Aug 2, 2021
52d1b51
New translations fr.js (Russian)
takefy-dev Aug 2, 2021
11df791
New translations fr.js (Portuguese)
takefy-dev Aug 2, 2021
c8bd94b
New translations fr.js (Polish)
takefy-dev Aug 2, 2021
b4712d1
New translations fr.js (Norwegian)
takefy-dev Aug 2, 2021
ab1533a
New translations fr.js (Korean)
takefy-dev Aug 2, 2021
585c7ac
New translations fr.js (French)
takefy-dev Aug 2, 2021
384105e
New translations fr.js (Japanese)
takefy-dev Aug 2, 2021
505d63e
New translations fr.js (Italian)
takefy-dev Aug 2, 2021
b4761dd
New translations fr.js (Hungarian)
takefy-dev Aug 2, 2021
d9454f8
New translations fr.js (Hebrew)
takefy-dev Aug 2, 2021
0e7f8af
New translations fr.js (Finnish)
takefy-dev Aug 2, 2021
eebeb82
New translations fr.js (Greek)
takefy-dev Aug 2, 2021
10fa11a
New translations fr.js (German)
takefy-dev Aug 2, 2021
29daae2
New translations fr.js (Danish)
takefy-dev Aug 2, 2021
b2fe81e
New translations fr.js (Czech)
takefy-dev Aug 2, 2021
37c79b0
New translations fr.js (Catalan)
takefy-dev Aug 2, 2021
1bb7b76
New translations fr.js (Arabic)
takefy-dev Aug 2, 2021
63ca661
New translations fr.js (Afrikaans)
takefy-dev Aug 2, 2021
09f8618
New translations fr.js (Spanish)
takefy-dev Aug 2, 2021
8bd64d4
New translations fr.js (Romanian)
takefy-dev Aug 3, 2021
32dcd82
New translations fr.js (Dutch)
takefy-dev Aug 3, 2021
427dd78
New translations fr.js (Vietnamese)
takefy-dev Aug 3, 2021
678bea1
New translations fr.js (English)
takefy-dev Aug 3, 2021
40909f4
New translations fr.js (Chinese Traditional)
takefy-dev Aug 3, 2021
538b173
New translations fr.js (Ukrainian)
takefy-dev Aug 3, 2021
7f5a1b1
New translations fr.js (Turkish)
takefy-dev Aug 3, 2021
7e58a60
New translations fr.js (Swedish)
takefy-dev Aug 3, 2021
587df04
New translations fr.js (Serbian (Cyrillic))
takefy-dev Aug 3, 2021
6c5d960
New translations fr.js (Russian)
takefy-dev Aug 3, 2021
4413f69
New translations fr.js (Portuguese)
takefy-dev Aug 3, 2021
87f7e3f
New translations fr.js (Polish)
takefy-dev Aug 3, 2021
58b4388
New translations fr.js (Norwegian)
takefy-dev Aug 3, 2021
44b05a4
New translations fr.js (Korean)
takefy-dev Aug 3, 2021
5f9b9b4
New translations fr.js (French)
takefy-dev Aug 3, 2021
cf195a2
New translations fr.js (Japanese)
takefy-dev Aug 3, 2021
a202f4c
New translations fr.js (Italian)
takefy-dev Aug 3, 2021
64859b9
New translations fr.js (Hungarian)
takefy-dev Aug 3, 2021
3067e4b
New translations fr.js (Hebrew)
takefy-dev Aug 3, 2021
41a0683
New translations fr.js (Finnish)
takefy-dev Aug 3, 2021
a56e358
New translations fr.js (Greek)
takefy-dev Aug 3, 2021
eccd008
New translations fr.js (German)
takefy-dev Aug 3, 2021
e486a4a
New translations fr.js (Danish)
takefy-dev Aug 3, 2021
ca1ffc4
New translations fr.js (Czech)
takefy-dev Aug 3, 2021
6869273
New translations fr.js (Catalan)
takefy-dev Aug 3, 2021
dfff95c
New translations fr.js (Arabic)
takefy-dev Aug 3, 2021
10186d3
New translations fr.js (Afrikaans)
takefy-dev Aug 3, 2021
b6d1808
New translations fr.js (Spanish)
takefy-dev Aug 3, 2021
32a4db2
New translations fr.js (Romanian)
takefy-dev Aug 3, 2021
c782470
New translations fr.js (Italian)
takefy-dev Aug 3, 2021
79a4508
New translations fr.js (German)
takefy-dev Aug 21, 2021
095842f
New translations fr.js (German)
takefy-dev Aug 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion commands/blacklist/blacklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = class Test extends Command {
message.channel.send(lang.blacklist.successBanBl(memberUser)).then(async () => {
try {
if (client.botperso) {
await client.guilds.cache.filter(g => g.me.hasPermission('BAN_MEMBERS')).forEach(guild => {
await client.guilds.cache.filter(g => g.me.permissions.has('BAN_MEMBERS')).forEach(guild => {
guild.members.ban(memberUser.id, {reason: `Blacklist par ${message.author.tag}`,})

})
Expand Down
9 changes: 1 addition & 8 deletions commands/botOwner/botperso.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ const gdate = require('gdate')
require('dotenv').config();
const prettyMilliseconds = require('pretty-ms');
const dateFormater = require('pm-date-formater');
const importer = require('node-mysql-importer')
const password = require('secure-random-password');
const bcrypt = require('bcryptjs');
const BotPerso = require('../../utils/BotPerso');
const fetch = require('node-fetch')
const Command = require('../../structures/Handler/Command');
const { Logger } = require('advanced-command-handler')
const Discord = require('discord.js')
module.exports = class Test extends Command{
constructor() {
Expand Down Expand Up @@ -59,8 +55,6 @@ module.exports = class Test extends Command{
let yyyy = now.getFullYear();
const today = yyyy + '-' + mm + '-' + dd;
if (create) {
const randomPassword = password.randomPassword({length: 8})
let hashPass = await bcrypt.hash(randomPassword, 8)
message.channel.send("<:720681705219817534:780540043033837622> \`SUCCÈS\` Mentionne le client !(timeout dans 30s & \`cancel\` pour annuler)")
const responseClient = await message.channel.awaitMessages(m => m.author.id === message.author.id, {
max: 1,
Expand Down Expand Up @@ -101,8 +95,7 @@ module.exports = class Test extends Command{
const formattime = dateFormater.formatDate(new Date(time), 'yyyy-MM-dd');
console.log(time)
const discordName = !member.nickname ? member.user.username : member.nickname;
const botpersoSqlPath = `/home/oneforall/assets/botperso.sql`



try {
const newBot = {
Expand Down
427 changes: 419 additions & 8 deletions commands/botOwner/test.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions commands/giveaway/gcreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ module.exports = class Test extends Command {
const msg = await message.channel.send(lang.loading)
for (const em of emojis) await msg.react(em);
msg.edit('', embed).then(async m => {
const collector = m.createReactionCollector(filter, {time: 900000});
const collector = m.createReactionCollector({filter, time: 900000});
collector.on('collect', async r => {
await r.users.remove(message.author);
if (r.emoji.name === emojis[0]) {
message.channel.send(lang.giveaway.create.question.time).then(mp => {
mp.channel.awaitMessages(dureefiltrer, {max: 1, time: 30000, errors: ['time']})
mp.channel.awaitMessages( {dureefiltrer,max: 1, time: 30000, errors: ['time']})
.then(cld => {
const msg = cld.first();
if (!isValideTime(msg.content)) return message.channel.send(lang.giveaway.create.inccorectResponse.time).then((reply) => {
Expand Down
2 changes: 1 addition & 1 deletion commands/invite/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ module.exports = class Test extends Command {
msg.edit(embed)
}
} else if (args[0] === "sync") {
const newInv = await message.guild.fetchInvites()
const newInv = await message.guild.invites.fetch()
await message.guild.members.fetch()
const invitesCount = new Map();
for (const [code, invite] of newInv) {
Expand Down
705 changes: 372 additions & 333 deletions commands/misc/embedBuilder.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion commands/misc/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = class Test extends Command{
const color = guildData.get('color')
const add = args[0] === 'add';
const remove = args[0] === 'remove';
// if(!message.member.hasPermission('MANAGE_ROLES')) return message.channel.send("<:720681441670725645:780539422479351809> \`ERREUR\` Vous n'avez pas la permission requise \`MANAGER_ROLES\`");
// if(!message.member.permissions.has('MANAGE_ROLES')) return message.channel.send("<:720681441670725645:780539422479351809> \`ERREUR\` Vous n'avez pas la permission requise \`MANAGER_ROLES\`");
let member = message.mentions.members.first() || message.guild.members.cache.get(args[1]);
let role = message.mentions.roles.first() || message.guild.roles.cache.get(args[2]);
if(!role) return message.channel.send("Le rôle spécifié n'existe pas.")
Expand Down
2 changes: 1 addition & 1 deletion commands/moderation/alladmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = class Test extends Command {
const color = guildData.get('color')
const lang = guildData.lang;
const admins = message.guild.members.cache.filter(
(m) => m.hasPermission('ADMINISTRATOR')
(m) => m.permissions.has('ADMINISTRATOR')
).map(m => tempdata.push(m.user.id))


Expand Down
2 changes: 1 addition & 1 deletion commands/moderation/lockchannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = class Test extends Command {
const guildData = client.managers.guildManager.getAndCreateIfNotExists(message.guild.id);
const lang = guildData.lang;

// if(!message.member.hasPermission('MANAGE_CHANNELS')) return message.channel.send("<:720681441670725645:780539422479351809> \`ERREUR\` Vous n'avez pas la permission requise \`MANAGE_CHANNELS\`")
// if(!message.member.permissions.has('MANAGE_CHANNELS')) return message.channel.send("<:720681441670725645:780539422479351809> \`ERREUR\` Vous n'avez pas la permission requise \`MANAGE_CHANNELS\`")
let isSetup =guildData.get('setup')
if (!isSetup) return message.channel.send(lang.error.noSetup)
const on = args[0] === 'on';
Expand Down
2 changes: 1 addition & 1 deletion commands/moderation/unban.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = class Test extends Command {

const guildData = client.managers.guildManager.getAndCreateIfNotExists(message.guild.id);
const lang = guildData.lang;
// if(!message.member.hasPermission('BAN_MEMBERS')) return message.channel.send("<:720681441670725645:780539422479351809> \`ERREUR\` Vous n'avez pas la permission requise \`BAN_MEMBERS\`")
// if(!message.member.permissions.has('BAN_MEMBERS')) return message.channel.send("<:720681441670725645:780539422479351809> \`ERREUR\` Vous n'avez pas la permission requise \`BAN_MEMBERS\`")
const color = guildData.get('color')
if (args[0] === 'all') {
const bans = await message.guild.fetchBans();
Expand Down
6 changes: 3 additions & 3 deletions events/Command/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const DBL = require("dblapi.js");
module.exports = class message extends Event {
constructor() {
super({
name: 'message',
name: 'messageCreate',
});
}

Expand Down Expand Up @@ -118,12 +118,12 @@ module.exports = class message extends Event {
} else {
if(!enable || !permHasCommand){
for (const commandPermissions of cmd.userPermissions) {
if (!message.member.hasPermission(commandPermissions) && message.guild.ownerID !== message.author.id) {
if (!message.member.permissions.has(commandPermissions) && message.guild.ownerID !== message.author.id) {
return message.channel.send(lang.error.userPermissions(commandPermissions))
}
}
for (const commandPermissions of cmd.clientPermissions) {
if (!message.guild.me.hasPermission(commandPermissions)) {
if (!message.guild.me.permissions.has(commandPermissions)) {
return message.channel.send(lang.error.clientPermissions(commandPermissions))
}
}
Expand Down
4 changes: 2 additions & 2 deletions events/antiraid/antiBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = class AntiBot extends Event {
async run(client, member) {
if(!member.user.bot) return
const guild = member.guild;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color');
const antiraidConfig = guildData.get('antiraid');
Expand All @@ -38,7 +38,7 @@ module.exports = class AntiBot extends Event {
if (isWlBypass && !isWl || !isWlBypass) {
const executor = await guild.members.fetch(action.executor.id)
const channel = guild.channels.cache.get(antiraidLog)
if(!guild.me.hasPermission("KICK_MEMBERS")){
if(!guild.me.permissions.has("KICK_MEMBERS")){
if (channel && !channel.deleted) {
channel.send(logs.botAdd(executor, member.user.username, member.id, color, "Je n'ai pas assé de permissions"))
}
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/antiDeco.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = class Ready extends Event {

async run(client, member, channel) {
const guild = member.guild;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id);
const color = guildData.get('color');
const antiraidConfig = guildData.get('antiraid');
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/antiLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const spammer = new Collection()
module.exports = class Message extends Event {
constructor() {
super({
name: 'message',
name: 'messageCreate',
});
}

Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/antiMassBan.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = class Ready extends Event {
}

async run(client, guild, user) {
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color');
const antiraidConfig = guildData.get('antiraid');
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/antiMassKick.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = class Ready extends Event{
}
async run(client, member){
const guild = member.guild;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color');
const antiraidConfig = guildData.get('antiraid');
Expand Down
4 changes: 2 additions & 2 deletions events/antiraid/antiMassMention.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ms = require("ms");
module.exports = class Message extends Event {
constructor() {
super({
name: 'message',
name: 'messageCreate',
});
}

Expand All @@ -31,12 +31,12 @@ module.exports = class Message extends Event {
const limit = parsedLimit[0];
const time = ms(parsedLimit[1]);
const { roles, members } = message.mentions;
if(!roles.size && !members.size) return
const userData = client.managers.userManager.getAndCreateIfNotExists(`${message.guild.id}-${member.id}`);
const { mentions } = userData.get('antiraidLimit')
if (mentions.date) {
const diff = new Date() - new Date(mentions.date)
const counter = mentions.counter;
console.log(mentions)
if (diff < time && counter < limit) {
mentions.counter += roles.size;
mentions.counter += members.size;
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/antiSpam.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const spammer = new Collection()
module.exports = class Message extends Event{
constructor() {
super({
name: 'message',
name: 'messageCreate',
});
}
async run(client, message){
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/channelCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = class channelCreate extends Event {
async run(client, channel) {
let guild = channel.guild
if (channel.type === "dm") return;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color');
const antiraidConfig = guildData.get('antiraid');
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/channelDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = class channelDelete extends Event {
async run(client, channel) {
let guild = channel.guild
if (channel.type === "dm") return;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color');
const antiraidConfig = guildData.get('antiraid');
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/channelUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = class channelUpdate extends Event {
async run(client, oldChannel, newChannel) {
let guild = oldChannel.guild;

if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color')
let antiraidLog = guildData.get('logs').antiraid;
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/guildMemberUpdate.js.none
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = class guildMemberUpdate extends Event {


let guild = oldMember.guild;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const color = guildEmbedColor.get(oldMember.guild.id)


Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/guildUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = class guildUpdate extends Event {

async run(client, oldGuild, newGuild) {

if (!oldGuild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!oldGuild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(oldGuild.id)
const color = guildData.get('color')
let {antiraidLog} = guildData.get('logs').antiraid;
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/guildVanityUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = class guildVanityUpdate extends Event {
}

async run(client, guild, oldVanityURL, newVanityURL) {
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color')
let antiraidLog = guildData.get('logs').antiraid;
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/memberRoleAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = class Ready extends Event {
async run(client, member, role) {
let guild = member.guild;
if (!role.permissions.has("KICK_MEMBERS") || !role.permissions.has("BAN_MEMBERS") || !role.permissions.has("ADMINISTRATOR") || !role.permissions.has("MANAGE_CHANNELS") || !role.permissions.has("MANAGE_GUILD") || !role.permissions.has("MANAGE_ROLES") || !role.permissions.has("MENTION_EVERYONE")) return;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color')
let antiraidLog = guildData.get('logs').antiraid;
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/memberRoleRemove.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = class Ready extends Event {
async run(client, member, role) {
let guild = member.guild;
if (!role.permissions.has("KICK_MEMBERS") || !role.permissions.has("BAN_MEMBERS") || !role.permissions.has("ADMINISTRATOR") || !role.permissions.has("MANAGE_CHANNELS") || !role.permissions.has("MANAGE_GUILD") || !role.permissions.has("MANAGE_ROLES") || !role.permissions.has("MENTION_EVERYONE")) return;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color')
let antiraidLog = guildData.get('logs').antiraid;
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/roleCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = class roleCreate extends Event {
async run(client, role) {
if (role.managed) return;
let guild = role.guild;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color')
let antiraidLog = guildData.get('logs').antiraid;
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/roleDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = class roleDelete extends Event {
async run(client, role) {
if(role.managed) return;
let guild = role.guild;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color')
let antiraidLog = guildData.get('logs').antiraid;
Expand Down
2 changes: 1 addition & 1 deletion events/antiraid/roleUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = class roleUpdate extends Event {
async run(client, oldRole, newRole) {
if (oldRole === newRole) return;
const guild = oldRole.guild;
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
if (oldRole.managed && newRole.managed) return;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id)
const color = guildData.get('color')
Expand Down
2 changes: 1 addition & 1 deletion events/blacklist/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = class Ready extends Event {
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id);
const {enable, blacklistedRoles} = guildData.get('blacklistRole');
if (!enable && !blacklistedRoles.length && !blacklistedRoles.includes(role.id)) return
if (!guild.me.hasPermission("VIEW_AUDIT_LOG")) return;
if (!guild.me.permissions.has("VIEW_AUDIT_LOG")) return;
let action = await guild.fetchAuditLogs({type: "MEMBER_ROLE_UPDATE"}).then(async (audit) => audit.entries.first());
if (action.executor.id === client.user.id) return Logger.log(`No sanction oneforall`, `${this.name}`, 'pink');
if (guild.ownerID === action.executor.id) return Logger.log(`No sanction crown`, `${this.name}`, 'pink');
Expand Down
2 changes: 1 addition & 1 deletion events/create/guildCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = class guildCreate extends Event {
owners: client.botperso ? [] : [guild.ownerID]
}).save()

const newInv = await guild.fetchInvites()
const newInv = await guild.invites.fetch()
for (const [code, invite] of newInv) {
guildData.cachedInv.set(code, invite)
}
Expand Down
2 changes: 1 addition & 1 deletion events/invite/InviteAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = class Ready extends Event {
const channel = guild.channels.cache.get(id);
const lang = guildData.lang;
const {cachedInv} = guildData;
const newInv = await guild.fetchInvites()
const newInv = await guild.invites.fetch()

const usedInv = newInv.find(inv => cachedInv.get(inv.code) ? cachedInv.get(inv.code).uses < inv.uses : undefined);
for (const [code, invite] of newInv) {
Expand Down
2 changes: 1 addition & 1 deletion events/invite/InviteRemove.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = class Ready extends Event{
async run(client, member){
const {guild} = member;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id);
const guildInv = await guild.fetchInvites()
const guildInv = await guild.invites.fetch()
for(const [code, invite] of guildInv){
guildData.cachedInv.set(code, invite)
}
Expand Down
2 changes: 1 addition & 1 deletion events/invite/inviteCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = class inviteCreate extends Event {
async run(client, invite) {
const guild = invite.guild;
const guildData = client.managers.guildManager.getAndCreateIfNotExists(guild.id);
const guildInv = await guild.fetchInvites()
const guildInv = await guild.invites.fetch()
for(const [code, invite] of guildInv){
guildData.cachedInv.set(code, invite)
}
Expand Down
Loading