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