Skip to content

Commit

Permalink
remove test loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
Epic428 committed May 3, 2023
1 parent 4da52e8 commit 9553373
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/events/crosspost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@ import { DiscordEvent } from "../utils/types";
export default {
name: "messageCreate",
execute(message: Message) {
console.log(`testing message for crosspost:`);
console.log(`type: ${message.channel.type}`);
console.log(`isBot: ${message.author.bot}`);
if (message.channel.type === ChannelType.GuildAnnouncement && message.author.bot) {
console.log("crossposting message");
message.crosspost()
.then(() => console.log("crossposted message!"))
.catch(console.error);
message.crosspost();
}
}
} as DiscordEvent;

0 comments on commit 9553373

Please sign in to comment.