removed logs

This commit is contained in:
404invalid-user 2025-01-18 15:49:16 +00:00
parent a6741d87ec
commit b51e508357
6 changed files with 1 additions and 12 deletions

View file

@ -12,7 +12,7 @@ const data = {
allowSuspendedUserAccess: false,
command: new SlashCommandBuilder()
.setName('messagemacro')
.setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages)
.setDescription("setup message macros for the server")
.addSubcommand(subcommand =>
subcommand

View file

@ -55,9 +55,6 @@ export async function chatInputCommand(client: Client, interaction: ChatInputCom
//get and validate channel
let channel = interaction.options.getChannel('channel');
console.log("balkkd cjrA")
console.log(channel
)
if (channel === undefined) channel = null;
if (channel !== null) {
if (channel.type !== ChannelType.GuildText && channel.type !== ChannelType.GuildAnnouncement) {

View file

@ -33,7 +33,6 @@ export async function chatInputCommand(client: Client, interaction: ChatInputCom
guild: guild.id,
},
});
console.log("nuts")
msgMacros = msgMacroDocs.map((item: any) => item.dataValues);
} catch (err: any) {
YALAS.error(err);
@ -44,8 +43,6 @@ export async function chatInputCommand(client: Client, interaction: ChatInputCom
if (msgMacros.length === 0) {
return interaction.editReply("No message macros found.");
}
console.log("balks")
const updateEmbed = (index: number) => {
const currentMacro: MessageMacroAttributes = msgMacros[index];

View file

@ -27,7 +27,6 @@ const guildPrefixs = new PrefixCache();
async function getGuildPrefix(guild: Guild) {
let p = guildPrefixs.get(guild.id);
console.log("p: "+p)
if (p !== null) return p;
let guildDoc: GuildAttributes | null = await schemas['Guild'].findOne({

View file

@ -5,7 +5,6 @@ import * as YALAS from 'mcstatusbot-logger';
export default async function MessageReactionAdd(client: Client, reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser) {
if (reaction.partial) {
console.log("reaction partial")
try {
await reaction.fetch();
} catch (error) {
@ -17,7 +16,6 @@ export default async function MessageReactionAdd(client: Client, reaction: Messa
if (user.partial) {
console.log("user partial")
try {
await user.fetch();
} catch (error) {

View file

@ -6,7 +6,6 @@ export default async function MessageReactionRemove(client: Client, reaction: Me
if (!reaction.message.guild) return;
// When a reaction is received, check if the structure is partial
if (reaction.partial) {
console.log("reaction partial")
try {
await reaction.fetch();
} catch (error) {
@ -17,7 +16,6 @@ export default async function MessageReactionRemove(client: Client, reaction: Me
}
if (user.partial) {
console.log("user partial")
try {
await user.fetch();
} catch (error) {