Membership change tracking #8
22
src/index.ts
22
src/index.ts
|
|
@ -30,21 +30,21 @@ import { AudienceChangeController } from './controllers/audienceChange';
|
|||
);
|
||||
|
||||
await bot.connect();
|
||||
await client.connect();
|
||||
// await client.connect();
|
||||
|
||||
try {
|
||||
const messages = await client.getChannelMessages(channelId, { statsOnly: true });
|
||||
console.dir(messages);
|
||||
// try {
|
||||
// const messages = await client.getChannelMessages(channelId, { statsOnly: true });
|
||||
// console.dir(messages);
|
||||
|
||||
const users = await client.getChannelUsers(channelId);
|
||||
// const users = await client.getChannelUsers(channelId);
|
||||
|
||||
console.dir(users);
|
||||
}
|
||||
catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
// console.dir(users);
|
||||
// }
|
||||
// catch (err) {
|
||||
// console.error(err);
|
||||
// }
|
||||
|
||||
console.dir(await bot.getChannelInfo(channelId));
|
||||
// console.dir(await bot.getChannelInfo(channelId));
|
||||
|
||||
// for (const message of messages)
|
||||
// console.dir(await client.getChannelMessage(channelId, message.id));
|
||||
|
|
|
|||
Loading…
Reference in New Issue