aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/evergreen/issues.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py
index 05595a56..83cafcc8 100644
--- a/bot/exts/evergreen/issues.py
+++ b/bot/exts/evergreen/issues.py
@@ -26,7 +26,9 @@ BAD_RESPONSE = {
404: "Issue/pull request not located! Please enter a valid number!",
403: "Rate limit has been hit! Please try again later!"
}
-REQUEST_HEADERS = dict()
+REQUEST_HEADERS = {
+ "Accept": "application/vnd.github.v3+json"
+}
REPOSITORY_ENDPOINT = "https://api.github.com/orgs/{org}/repos?per_page=100"
ISSUE_ENDPOINT = "https://api.github.com/repos/{user}/{repository}/issues/{number}"
@@ -65,7 +67,7 @@ class IssueState:
number: int
url: str
title: str
- icon_url: str
+ emoji_url: str
class Issues(commands.Cog):
@@ -174,7 +176,7 @@ class Issues(commands.Cog):
for result in results:
if isinstance(result, IssueState):
- description_list.append(f"{result.icon_url} [{result.title}]({result.url})")
+ description_list.append(f"{result.emoji_url} [{result.title}]({result.url})")
elif isinstance(result, FetchError):
description_list.append(f"[{result.return_code}] {result.message}")