Compare commits

..

No commits in common. "2f9053bcc914a779d4d96362d4f0c16d28229911" and "b3d8755b7ddf8fdd65d212fb0c795bb2c8a42204" have entirely different histories.

2 changed files with 1 additions and 18 deletions

View file

@ -3,7 +3,6 @@ import { Locale } from 'discord-api-types/v9';
import { Client, CommandInteraction, MessageEmbed } from 'discord.js';
import { getLocale, getLocalizations } from '../../utils/locales';
import { getFilename } from '../../utils/misc';
import '../../modules/string';
export default {
data: (client: Client) => {
@ -66,7 +65,7 @@ export default {
}, '');
fields.push({
name: category.capitalize(),
name: category.toUpperCase(),
value: commands_description,
});
});

View file

@ -1,16 +0,0 @@
export {};
declare global {
// Declarations
interface String {
/**
* Returns a copy of the string with the first letter capitalized.
*/
capitalize(): string,
}
}
/** Capitalize definition */
String.prototype.capitalize = function(this: string) {
return this[0].toUpperCase() + this.substring(1);
};