♻️ Rename createReward first argument to userId
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user