mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Dan is stupid
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = class TwitterCommand extends Command {
|
||||
async run(msg, { user }) {
|
||||
try {
|
||||
if (!this.token) await this.fetchToken();
|
||||
const { body } = snekfetch
|
||||
const { body } = await snekfetch
|
||||
.get('https://api.twitter.com/1.1/users/show.json')
|
||||
.set({ Authorization: `Bearer ${this.token}` })
|
||||
.query({ screen_name: user });
|
||||
|
||||
Reference in New Issue
Block a user