mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Change arg assignment
This commit is contained in:
@@ -28,8 +28,7 @@ module.exports = class GitHubCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg, args) {
|
||||
const { author, repository } = args;
|
||||
async run(msg, { author, repository }) {
|
||||
try {
|
||||
const { body } = await snekfetch
|
||||
.get(`https://${GITHUB_LOGIN}@api.github.com/repos/${author}/${repository}`);
|
||||
|
||||
Reference in New Issue
Block a user