diff --git a/litecord/blueprints/channel/pins.py b/litecord/blueprints/channel/pins.py index 8675062..58959f5 100644 --- a/litecord/blueprints/channel/pins.py +++ b/litecord/blueprints/channel/pins.py @@ -54,10 +54,13 @@ async def add_pin(channel_id, message_id): timestamp = snowflake_datetime(row['message_id']) - await app.dispatcher.dispatch_guild(guild_id, 'CHANNEL_PINS_UPDATE', { - 'channel_id': str(channel_id), - 'last_pin_timestamp': timestamp.isoformat() - }) + await app.dispatcher.dispatch( + 'channel', channel_id, 'CHANNEL_PINS_UPDATE', + { + 'channel_id': str(channel_id), + 'last_pin_timestamp': timestamp.isoformat() + } + ) return '', 204