<commit_before>import { BaseCommandName } from '../types/BaseCommandName';
import { GuildStorage } from '../storage/GuildStorage';
import { Message } from '../types/Message';
import { Command } from '../command/Command';
import { Client } from '../client/Client';

/**
 * Utility class containing handy static methods that can
 * be used anywhere
 * @module Util
 */
export class Util
{
	/**
	 * Tangible representation of all base command names
	 * @static
	 * @name baseCommandNames
	 * @type {BaseCommandName[]}
	 */
	public static baseCommandNames: BaseCommandName[] = require('./static/baseCommandNames.json');

	/**
	 * Return whether or not a command was called in the given
	 * message, the called command, the prefix used to call the
	 * command, and the name or alias of the command used to call it.
	 * >Returns `[false, null, null, null]` if no command was called
	 * @static
	 * @method wasCommandCalled
	 * @param {Message} message Message to check
	 * @returns {Tuple<boolean, Command, string, string>}
	 */
	public static async wasCommandCalled(message: Message): Promise<[boolean, Command, string, string]>
	{<commit_msg>Fix Util.wasCommandCalled() docs return type<commit_after>import { BaseCommandName } from '../types/BaseCommandName';
import { GuildStorage } from '../storage/GuildStorage';
import { Message } from '../types/Message';
import { Command } from '../command/Command';
import { Client } from '../client/Client';

/**
 * Utility class containing handy static methods that can
 * be used anywhere
 * @module Util
 */
export class Util
{
	/**
	 * Tangible representation of all base command names
	 * @static
	 * @name baseCommandNames
	 * @type {BaseCommandName[]}
	 */
	public static baseCommandNames: BaseCommandName[] = require('./static/baseCommandNames.json');

	/**
	 * Return whether or not a command was called in the given
	 * message, the called command, the prefix used to call the
	 * command, and the name or alias of the command used to call it.
	 * >Returns `[false, null, null, null]` if no command was called
	 * @static
	 * @method wasCommandCalled
	 * @param {Message} message Message to check
	 * @returns {Promise<Tuple<boolean, Command, string, string>>}
	 */
	public static async wasCommandCalled(message: Message): Promise<[boolean, Command, string, string]>
	{
{'fraction_non_alphanumeric': 0.12046632124352331, 'fraction_numerical': 0.0, 'mean_word_length': 4.126106194690266, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3050206', 'n_tokens_mistral': 637, 'n_tokens_neox': 602, 'n_words': 244}