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,
|
||||
command: new SlashCommandBuilder()
|
||||
.setName('messagemacro')
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild)
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages)
|
||||
.setDescription("setup message macros for the server")
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue