aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorromangraef <romangraef@loves.dicksinhisan.us>2018-08-19 21:26:59 +0200
committerromangraef <romangraef@loves.dicksinhisan.us>2018-08-19 21:26:59 +0200
commit2b2fc70bb38501208ec043b89f1692ec080c2e89 (patch)
tree93a86a5b59ed1d3aea07d9ff4bdf530288e9af56 /README.md
parent11a62d2addc55a4e23a899a795103e59cd8f290b (diff)
downloaddiscord_ban_list-2b2fc70bb38501208ec043b89f1692ec080c2e89.tar.gz
discord_ban_list-2b2fc70bb38501208ec043b89f1692ec080c2e89.tar.bz2
discord_ban_list-2b2fc70bb38501208ec043b89f1692ec080c2e89.zip
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9c871c9..5be0410 100644
--- a/README.md
+++ b/README.md
@@ -13,13 +13,21 @@ from discord_ban_list import DiscordBanList
ban_list = DiscordBanList('YOUR_TOKEN')
async def on_something():
- ban_entry = ban_list.check(123456789123456789)
+ ban_entries = ban_list.check(123456789123456789)
+ ban_entry = ban_entries[0]
print(ban_entry.banned)
print(ban.user_id)
print(ban.case_id)
print(ban.reason)
print(ban.proof)
+async def on_something_two():
+ ban_entries = ban_list.check(0, 1, 2, 0)
+ # automatically only check 0, 1 and 2
+ # we also have client side handling for the 99 users limit
+ for entry in ban_entries:
+ print(f'{ban.user_id} - {ban.banned}')
+
```