1
0

♻️ Rename createReward first argument to userId

This commit is contained in:
2022-01-06 02:47:07 +01:00
parent 7a451aa67c
commit 1f78fdda64

View File

@@ -71,12 +71,12 @@ async function getUsernameFromId(userId: number): Promise<string | null> {
} }
async function createReward( async function createReward(
channel: UserIdResolvable, userId: UserIdResolvable,
data: HelixCreateCustomRewardData data: HelixCreateCustomRewardData
) { ) {
const apiClient = await getApiClient(); const apiClient = await getApiClient();
await apiClient.channelPoints.createCustomReward(channel, data); await apiClient.channelPoints.createCustomReward(userId, data);
} }
async function completeRewards( async function completeRewards(