mirror of
https://github.com/thaldrin/thaldrin.git
synced 2024-08-14 23:57:21 +00:00
update language related things
This commit is contained in:
parent
3d242f8426
commit
15f97d3158
2 changed files with 6 additions and 6 deletions
|
@ -82,10 +82,10 @@ export = {
|
||||||
|
|
||||||
// ! If Command is NSFW and channel is not marked as such, return
|
// ! If Command is NSFW and channel is not marked as such, return
|
||||||
if (cmd.nsfw && !ctx.channel.nsfw) return ctx.channel.send(
|
if (cmd.nsfw && !ctx.channel.nsfw) return ctx.channel.send(
|
||||||
lingua[server_data[0].locale].CHANNEL_NOT_NSFW
|
lingua[ctx.settings.locale].CHANNEL_NOT_NSFW
|
||||||
)
|
)
|
||||||
|
|
||||||
if (cmd.AuthorPermissions !== "NONE" && ctx.member?.permissions.has(cmd.AuthorPermissions)) return ctx.channel.send(replace(/PERMISSIONS/gm, cmd.AuthorPermissions.join(", "), lingua[server_data[0].locale].INSUFFICIENT_PERMISSIONS))
|
if (cmd.AuthorPermissions !== "NONE" && ctx.member?.permissions.has(cmd.AuthorPermissions)) return ctx.channel.send(replace(/PERMISSIONS/gm, cmd.AuthorPermissions.join(", "), lingua[ctx.settings.locale].INSUFFICIENT_PERMISSIONS))
|
||||||
|
|
||||||
|
|
||||||
const now = Date.now()
|
const now = Date.now()
|
||||||
|
@ -96,8 +96,8 @@ export = {
|
||||||
if (now < time) {
|
if (now < time) {
|
||||||
let CooldownEmbed = new MessageEmbed()
|
let CooldownEmbed = new MessageEmbed()
|
||||||
const left = (time - now) / 1000
|
const left = (time - now) / 1000
|
||||||
let title = replace(/COMMAND/g, cmd.name, lingua[server_data[0].locale].ON_COOLDOWN)
|
let title = replace(/COMMAND/g, cmd.name, lingua[ctx.settings.locale].ON_COOLDOWN)
|
||||||
let description = replace(/COMMAND/g, cmd.name, replace(/COOLDOWN/g, `${cmd.cooldown}s`, replace(/TIME/g, left, lingua[server_data[0].locale].ON_COOLDOWN_DESCRIPTION)))
|
let description = replace(/COMMAND/g, cmd.name, replace(/COOLDOWN/g, `${cmd.cooldown}s`, replace(/TIME/g, left, lingua[ctx.settings.locale].ON_COOLDOWN_DESCRIPTION)))
|
||||||
CooldownEmbed.setTitle(title)
|
CooldownEmbed.setTitle(title)
|
||||||
.setDescription(description)
|
.setDescription(description)
|
||||||
.setColor("ORANGE")
|
.setColor("ORANGE")
|
||||||
|
@ -129,7 +129,7 @@ export = {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Logger.error(error)
|
// Logger.error(error)
|
||||||
console.log(error)
|
console.log(error)
|
||||||
let ErrorEmbed = new MessageEmbed().setTitle(replace(/COMMAND/g, cmd.name, lingua[server_data[0].locale].ON_ERROR)).setDescription(`\`${error.message}\`\n\n\`${error}\``).setColor("RED")
|
let ErrorEmbed = new MessageEmbed().setTitle(replace(/COMMAND/g, cmd.name, lingua[ctx.settings.locale].ON_ERROR)).setDescription(`\`${error.message}\`\n\n\`${error}\``).setColor("RED")
|
||||||
ctx.channel.send(ErrorEmbed)
|
ctx.channel.send(ErrorEmbed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8920bbb3d909a76f45760548d1f8ba6c05748f0b
|
Subproject commit f3ac2b6376a291a661e0acd48e1840d67de8b00c
|
Loading…
Reference in a new issue