removed logs
This commit is contained in:
parent
a6741d87ec
commit
b51e508357
6 changed files with 1 additions and 12 deletions
|
@ -12,7 +12,7 @@ const data = {
|
||||||
allowSuspendedUserAccess: false,
|
allowSuspendedUserAccess: false,
|
||||||
command: new SlashCommandBuilder()
|
command: new SlashCommandBuilder()
|
||||||
.setName('messagemacro')
|
.setName('messagemacro')
|
||||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
|
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages)
|
||||||
.setDescription("setup message macros for the server")
|
.setDescription("setup message macros for the server")
|
||||||
.addSubcommand(subcommand =>
|
.addSubcommand(subcommand =>
|
||||||
subcommand
|
subcommand
|
||||||
|
|
|
@ -55,9 +55,6 @@ export async function chatInputCommand(client: Client, interaction: ChatInputCom
|
||||||
|
|
||||||
//get and validate channel
|
//get and validate channel
|
||||||
let channel = interaction.options.getChannel('channel');
|
let channel = interaction.options.getChannel('channel');
|
||||||
console.log("balkkd cjrA")
|
|
||||||
console.log(channel
|
|
||||||
)
|
|
||||||
if (channel === undefined) channel = null;
|
if (channel === undefined) channel = null;
|
||||||
if (channel !== null) {
|
if (channel !== null) {
|
||||||
if (channel.type !== ChannelType.GuildText && channel.type !== ChannelType.GuildAnnouncement) {
|
if (channel.type !== ChannelType.GuildText && channel.type !== ChannelType.GuildAnnouncement) {
|
||||||
|
|
|
@ -33,7 +33,6 @@ export async function chatInputCommand(client: Client, interaction: ChatInputCom
|
||||||
guild: guild.id,
|
guild: guild.id,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
console.log("nuts")
|
|
||||||
msgMacros = msgMacroDocs.map((item: any) => item.dataValues);
|
msgMacros = msgMacroDocs.map((item: any) => item.dataValues);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
YALAS.error(err);
|
YALAS.error(err);
|
||||||
|
@ -44,8 +43,6 @@ export async function chatInputCommand(client: Client, interaction: ChatInputCom
|
||||||
if (msgMacros.length === 0) {
|
if (msgMacros.length === 0) {
|
||||||
return interaction.editReply("No message macros found.");
|
return interaction.editReply("No message macros found.");
|
||||||
}
|
}
|
||||||
console.log("balks")
|
|
||||||
|
|
||||||
|
|
||||||
const updateEmbed = (index: number) => {
|
const updateEmbed = (index: number) => {
|
||||||
const currentMacro: MessageMacroAttributes = msgMacros[index];
|
const currentMacro: MessageMacroAttributes = msgMacros[index];
|
||||||
|
|
|
@ -27,7 +27,6 @@ const guildPrefixs = new PrefixCache();
|
||||||
async function getGuildPrefix(guild: Guild) {
|
async function getGuildPrefix(guild: Guild) {
|
||||||
|
|
||||||
let p = guildPrefixs.get(guild.id);
|
let p = guildPrefixs.get(guild.id);
|
||||||
console.log("p: "+p)
|
|
||||||
if (p !== null) return p;
|
if (p !== null) return p;
|
||||||
|
|
||||||
let guildDoc: GuildAttributes | null = await schemas['Guild'].findOne({
|
let guildDoc: GuildAttributes | null = await schemas['Guild'].findOne({
|
||||||
|
|
|
@ -5,7 +5,6 @@ import * as YALAS from 'mcstatusbot-logger';
|
||||||
export default async function MessageReactionAdd(client: Client, reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser) {
|
export default async function MessageReactionAdd(client: Client, reaction: MessageReaction | PartialMessageReaction, user: User | PartialUser) {
|
||||||
|
|
||||||
if (reaction.partial) {
|
if (reaction.partial) {
|
||||||
console.log("reaction partial")
|
|
||||||
try {
|
try {
|
||||||
await reaction.fetch();
|
await reaction.fetch();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -17,7 +16,6 @@ export default async function MessageReactionAdd(client: Client, reaction: Messa
|
||||||
|
|
||||||
|
|
||||||
if (user.partial) {
|
if (user.partial) {
|
||||||
console.log("user partial")
|
|
||||||
try {
|
try {
|
||||||
await user.fetch();
|
await user.fetch();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -6,7 +6,6 @@ export default async function MessageReactionRemove(client: Client, reaction: Me
|
||||||
if (!reaction.message.guild) return;
|
if (!reaction.message.guild) return;
|
||||||
// When a reaction is received, check if the structure is partial
|
// When a reaction is received, check if the structure is partial
|
||||||
if (reaction.partial) {
|
if (reaction.partial) {
|
||||||
console.log("reaction partial")
|
|
||||||
try {
|
try {
|
||||||
await reaction.fetch();
|
await reaction.fetch();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -17,7 +16,6 @@ export default async function MessageReactionRemove(client: Client, reaction: Me
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.partial) {
|
if (user.partial) {
|
||||||
console.log("user partial")
|
|
||||||
try {
|
try {
|
||||||
await user.fetch();
|
await user.fetch();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue