Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NogginBlaster
cog-gfl-vipstatus
Commits
c35c14bd
Commit
c35c14bd
authored
Jul 13, 2020
by
NogginBlaster
🇬🇧
Browse files
Fix permission check
parent
25b88832
Changes
2
Hide whitespace changes
Inline
Side-by-side
VipStatus/VipStatus.py
View file @
c35c14bd
...
...
@@ -16,7 +16,7 @@ class VipStatus(commands.Cog):
self
.
config
.
register_global
(
APIDomain
=
None
,
APIKey
=
None
,
APIEndpointDonator
=
"/donators"
)
@
commands
.
command
(
name
=
"donocheck"
,
help
=
"Check GFL donator status given steamid"
)
@
checks
.
bot_
has_permissions
(
manage_guild
=
True
)
@
checks
.
has_permissions
(
manage_guild
=
True
)
@
checks
.
bot_in_a_guild
()
async
def
donatorcheck
(
self
,
ctx
,
steam_id
:
str
=
None
):
domain
=
await
self
.
config
.
APIDomain
()
...
...
VipStatus/info.json
View file @
c35c14bd
{
"author"
:
[
"NogginBlaster"
],
"bot_version"
:
[
1
,
0
,
1
1
],
"bot_version"
:
[
1
,
0
,
1
2
],
"install_msg"
:
"Vip status installed..."
,
"short"
:
"Get members VIP status"
,
"description"
:
"Get members VIP status from steamid64"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment